Skip to content

Commit 176716e

Browse files
committed
fixed CS
1 parent a99835b commit 176716e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RouteCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private static function compilePattern(Route $route, $pattern, $isHost)
153153
// Find the next static character after the variable that functions as a separator. By default, this separator and '/'
154154
// are disallowed for the variable. This default requirement makes sure that optional variables can be matched at all
155155
// and that the generating-matching-combination of URLs unambiguous, i.e. the params used for generating the URL are
156-
// the same that will be matched. Example: new Route('/{page}.{_format}', array('_format' => 'html'))
156+
// the same that will be matched. Example: new Route('/{page}.{_format}', ['_format' => 'html'])
157157
// If {page} would also match the separating dot, {_format} would never match as {page} will eagerly consume everything.
158158
// Also even if {_format} was not optional the requirement prevents that {page} matches something that was originally
159159
// part of {_format} when generating the URL, e.g. _format = 'mobile.html'.

0 commit comments

Comments
 (0)