Skip to content

Commit 68f8218

Browse files
committed
fix: DefinedRouteCollector returns incorrect route data
1 parent 5af603c commit 68f8218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Router/DefinedRouteCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function collect(): Generator
5757
$handler = $view ? '(View) ' . $view : '(Closure)';
5858
}
5959

60-
$routeName = $this->routeCollection->getRoutesOptions($route)['as'] ?? $route;
60+
$routeName = $this->routeCollection->getRoutesOptions($route, $method)['as'] ?? $route;
6161

6262
yield [
6363
'method' => $method,

0 commit comments

Comments
 (0)