Skip to content

Commit b930616

Browse files
Remove useless code
1 parent da97931 commit b930616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RouteCompiler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private static function compilePattern(Route $route, string $pattern, bool $isHo
154154

155155
$regexp = $route->getRequirement($varName);
156156
if (null === $regexp) {
157-
$followingPattern = (string) substr($pattern, $pos);
157+
$followingPattern = substr($pattern, $pos);
158158
// Find the next static character after the variable that functions as a separator. By default, this separator and '/'
159159
// are disallowed for the variable. This default requirement makes sure that optional variables can be matched at all
160160
// and that the generating-matching-combination of URLs unambiguous, i.e. the params used for generating the URL are

0 commit comments

Comments
 (0)