Comment check if (->matches()) line 94 in vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php

dev-new-conf
poka 3 years ago
parent 8eeafbe1fb
commit 7e3d9537c7

@ -91,12 +91,12 @@ abstract class RegexBasedAbstract implements DataGenerator
if (isset($this->methodToRegexToRoutesMap[$httpMethod])) {
foreach ($this->methodToRegexToRoutesMap[$httpMethod] as $route) {
if ($route->matches($routeStr)) {
throw new BadRouteException(sprintf(
'Static route "%s" is shadowed by previously defined variable route "%s" for method "%s"',
$routeStr, $route->regex, $httpMethod
));
}
// if ($route->matches($routeStr)) {
// throw new BadRouteException(sprintf(
// 'Static route "%s" is shadowed by previously defined variable route "%s" for method "%s"',
// $routeStr, $route->regex, $httpMethod
// ));
// }
}
}

Loading…
Cancel
Save