We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 042525c commit 4e35d38Copy full SHA for 4e35d38
1 file changed
system/Router/DefinedRouteCollector.php
@@ -38,6 +38,10 @@ public function collect(): Generator
38
$routes = $this->routeCollection->getRoutes($method);
39
40
foreach ($routes as $route => $handler) {
41
+ // The route key should be a string, but it is stored as an array key,
42
+ // it might be an integer.
43
+ $route = (string) $route;
44
+
45
if (is_string($handler) || $handler instanceof Closure) {
46
if ($handler instanceof Closure) {
47
$view = $this->routeCollection->getRoutesOptions($route, $method)['view'] ?? false;
0 commit comments