Skip to content

Commit f355ff0

Browse files
committed
update the route name to the route key if the key is a string
1 parent 508c668 commit f355ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NestedMatcher/ConfigurableUrlMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function finalMatch(RouteCollection $collection, Request $request)
4747
$name = $route->getRouteKey();
4848
}
4949

50-
if (empty($attributes[RouteObjectInterface::ROUTE_NAME]) && is_string($name)) {
50+
if (is_string($name)) {
5151
$attributes[RouteObjectInterface::ROUTE_NAME] = $name;
5252
}
5353
}

0 commit comments

Comments
 (0)