This commit is contained in:
parent
c90da4bd5d
commit
e95677aec5
|
@ -99,7 +99,7 @@
|
||||||
|
|
||||||
foreach ($method_routes as $route)
|
foreach ($method_routes as $route)
|
||||||
{
|
{
|
||||||
$route_regex = preg_replReflectionNamedTypeace('#\\\{(.+)\\\}#iU', '([^/]+)', preg_quote($route, '#'));
|
$route_regex = preg_replace('#\\\{(.+)\\\}#iU', '([^/]+)', preg_quote($route, '#'));
|
||||||
$route_regex = preg_replace('#/$#', '/?', $route_regex);
|
$route_regex = preg_replace('#/$#', '/?', $route_regex);
|
||||||
|
|
||||||
$match = preg_match('#^' . $route_regex . '$#U', $url);
|
$match = preg_match('#^' . $route_regex . '$#U', $url);
|
||||||
|
@ -249,6 +249,7 @@
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$type = $parameter->getType();
|
$type = $parameter->getType();
|
||||||
$type = $type ?? false;
|
$type = $type ?? false;
|
||||||
$type = ($type instanceof \ReflectionNamedType) ? $type->getName() : $type;
|
$type = ($type instanceof \ReflectionNamedType) ? $type->getName() : $type;
|
||||||
|
|
Loading…
Reference in New Issue