|
|
|
@ -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 |
|
|
|
|
// )); |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|