From 34227375a12a7ea361fda596bb63a33238d057ae Mon Sep 17 00:00:00 2001 From: mychidarko Date: Tue, 15 Oct 2024 13:16:30 +0000 Subject: [PATCH] fix: return count of only handled routes --- src/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Router.php b/src/Router.php index 806caf0..82c0edb 100644 --- a/src/Router.php +++ b/src/Router.php @@ -831,7 +831,7 @@ private static function handle(?array $routes = null, bool $quitAfterRun = false static::invoke($currentRoute['handler'], $currentRoute['params']); } - return count($routeToHandle); + return count($routesToRun); } private static function invoke($handler, $params = [])