Comment check if (->matches()) line 94 in vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php
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…
Reference in New Issue