Skip to content

Commit 702d326

Browse files
authored
fix: routes keys must not be its names
1 parent c377646 commit 702d326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ protected function create(string $verb, string $from, $to, ?array $options = nul
15411541
// this works only because discovered routes are added just prior
15421542
// to attempting to route the request.
15431543
$routeKeyExists = isset($this->routes[$verb][$routeKey]);
1544-
if ((isset($this->routesNames[$verb][$name]) || $routeKeyExists) && ! $overwrite) {
1544+
if ((isset($this->routesNames[$verb][$routeKey]) || $routeKeyExists) && ! $overwrite) {
15451545
return;
15461546
}
15471547

0 commit comments

Comments
 (0)