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 d076aff commit fc5735dCopy full SHA for fc5735d
packages/router/src/Routing/Construction/RoutingTree.php
@@ -46,7 +46,7 @@ public function add(MarkedRoute $markedRoute): void
46
47
private function isOptionalSegment(string $segment): bool
48
{
49
- return str_contains($segment, '?');
+ return str_starts_with($segment, '{?');
50
}
51
52
private function stripOptionalMarker(string $segment): string
0 commit comments