Skip to content

Commit 0a1764d

Browse files
committed
Merge branch '2.3' into 2.6
* 2.3: Added 'default' color [HttpFoundation] Reload the session after regenerating its id [HttpFoundation] Add a test case to confirm a bug in session migration [Finder] Command::addAtIndex() fails with Command instance argument [DependencyInjection] Freeze also FrozenParameterBag::remove fix CS fixed CS Add a way to reset the singleton [Security] allow to use `method` in XML configs Remove var not used due to returning early (introduced in 8982c32) Enhance hhvm test skip message
2 parents 4125b6e + 4ced3b7 commit 0a1764d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,19 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
232232
$conditions[] = sprintf("rtrim(\$pathinfo, '/') === %s", var_export(rtrim(str_replace('\\', '', $m['url']), '/'), true));
233233
$hasTrailingSlash = true;
234234
} else {
235-
$conditions[] = sprintf("\$pathinfo === %s", var_export(str_replace('\\', '', $m['url']), true));
235+
$conditions[] = sprintf('$pathinfo === %s', var_export(str_replace('\\', '', $m['url']), true));
236236
}
237237
} else {
238238
if ($compiledRoute->getStaticPrefix() && $compiledRoute->getStaticPrefix() !== $parentPrefix) {
239-
$conditions[] = sprintf("0 === strpos(\$pathinfo, %s)", var_export($compiledRoute->getStaticPrefix(), true));
239+
$conditions[] = sprintf('0 === strpos($pathinfo, %s)', var_export($compiledRoute->getStaticPrefix(), true));
240240
}
241241

242242
$regex = $compiledRoute->getRegex();
243243
if ($supportsTrailingSlash && $pos = strpos($regex, '/$')) {
244244
$regex = substr($regex, 0, $pos).'/?$'.substr($regex, $pos + 2);
245245
$hasTrailingSlash = true;
246246
}
247-
$conditions[] = sprintf("preg_match(%s, \$pathinfo, \$matches)", var_export($regex, true));
247+
$conditions[] = sprintf('preg_match(%s, $pathinfo, $matches)', var_export($regex, true));
248248

249249
$matches = true;
250250
}

0 commit comments

Comments
 (0)