Skip to content

Commit 3422737

Browse files
committed
fix: return count of only handled routes
1 parent 6e0087c commit 3422737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ private static function handle(?array $routes = null, bool $quitAfterRun = false
831831
static::invoke($currentRoute['handler'], $currentRoute['params']);
832832
}
833833

834-
return count($routeToHandle);
834+
return count($routesToRun);
835835
}
836836

837837
private static function invoke($handler, $params = [])

0 commit comments

Comments
 (0)