Comment check if (->matches()) line 94 in vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php
This commit is contained in:
parent
8eeafbe1fb
commit
7e3d9537c7
|
@ -91,12 +91,12 @@ abstract class RegexBasedAbstract implements DataGenerator
|
||||||
|
|
||||||
if (isset($this->methodToRegexToRoutesMap[$httpMethod])) {
|
if (isset($this->methodToRegexToRoutesMap[$httpMethod])) {
|
||||||
foreach ($this->methodToRegexToRoutesMap[$httpMethod] as $route) {
|
foreach ($this->methodToRegexToRoutesMap[$httpMethod] as $route) {
|
||||||
if ($route->matches($routeStr)) {
|
// if ($route->matches($routeStr)) {
|
||||||
throw new BadRouteException(sprintf(
|
// throw new BadRouteException(sprintf(
|
||||||
'Static route "%s" is shadowed by previously defined variable route "%s" for method "%s"',
|
// 'Static route "%s" is shadowed by previously defined variable route "%s" for method "%s"',
|
||||||
$routeStr, $route->regex, $httpMethod
|
// $routeStr, $route->regex, $httpMethod
|
||||||
));
|
// ));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue