Skip to content

Commit

Permalink
fix: return count of only handled routes
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Oct 15, 2024
1 parent 6e0087c commit 3422737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down

0 comments on commit 3422737

Please sign in to comment.