Skip to content

Commit e084145

Browse files
committed
fix(router): remove unused foreach variable
1 parent 7b6cc1c commit e084145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/Routing/Construction/RoutingTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function add(MarkedRoute $markedRoute): void
3030
$segments = $markedRoute->route->split();
3131

3232
// Traverse the tree and find the node for each route segment
33-
foreach ($segments as $index => $routeSegment) {
33+
foreach ($segments as $routeSegment) {
3434
$isOptional = $this->isOptionalSegment($routeSegment);
3535

3636
if ($isOptional) {

0 commit comments

Comments
 (0)