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 39dfbe5 commit f9b217fCopy full SHA for f9b217f
book/routing.rst
@@ -996,7 +996,7 @@ variables that are passed into the expression:
996
Behind the scenes, expressions are compiled down to raw PHP. Our example
997
would generate the following PHP in the cache directory::
998
999
- if (rtrim($pathinfo, '/contact') === '' && (
+ if (0 === strpos($pathinfo, '/contact') && (
1000
in_array($context->getMethod(), array(0 => "GET", 1 => "HEAD"))
1001
&& preg_match("/firefox/i", $request->headers->get("User-Agent"))
1002
)) {
0 commit comments