We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eeb39e commit 1b4e1c9Copy full SHA for 1b4e1c9
1 file changed
src/Router.php
@@ -772,7 +772,7 @@ public static function findRoute(
772
// Extract parameter values
773
$params = [];
774
foreach ($matches as $index => $value) {
775
- $paramName = $paramNames[$index] ?? "var" . ($index + 1);
+ $paramName = $paramNames[$index] ?? 'var' . ($index + 1);
776
$params[$paramName] = trim($value, '/');
777
}
778
@@ -788,7 +788,9 @@ public static function findRoute(
788
789
$handledRoutes[] = $routeData;
790
791
- if ($returnFirst) break;
+ if ($returnFirst) {
792
+ break;
793
+ }
794
795
796
0 commit comments