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 6ba90ec commit e19ab95Copy full SHA for e19ab95
book/routing.rst
@@ -986,7 +986,7 @@ variables that are passed into the expression:
986
Behind the scenes, expressions are compiled down to raw PHP. Our example
987
would generate the following PHP in the cache directory::
988
989
- if (rtrim($pathinfo, '/contact') === '' && (
+ if (0 === strpos($pathinfo, '/contact') && (
990
in_array($context->getMethod(), array(0 => "GET", 1 => "HEAD"))
991
&& preg_match("/firefox/i", $request->headers->get("User-Agent"))
992
)) {
0 commit comments