Skip to content
Snippets Groups Projects
Commit d1286748 authored by catch's avatar catch
Browse files

Issue #1906322 by dawehner: Fixed MatcherDumper::getFit() has an undefined variable.

parent 4edd01e9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -144,25 +144,4 @@ public function getRoutes() {
return $this->routes;
}
/**
* Determines the fitness of the provided path.
*
* @param string $path
* The path whose fitness we want.
*
* @return int
* The fitness of the path, as an integer.
*/
public function getFit($path) {
$fit = 0;
$parts = explode('/', $path, static::MAX_PARTS);
foreach ($parts as $k => $part) {
if (strpos($part, '{') === FALSE) {
$fit |= 1 << ($slashes - $k);
}
}
return $fit;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment