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.
2 parents 8bca8c2 + 3d88312 commit 37253f5Copy full SHA for 37253f5
book/routing.rst
@@ -981,7 +981,7 @@ variables that are passed into the expression:
981
Behind the scenes, expressions are compiled down to raw PHP. Our example
982
would generate the following PHP in the cache directory::
983
984
- if (rtrim($pathinfo, '/contact') === '' && (
+ if ($pathinfo === '/contact' && (
985
in_array($context->getMethod(), array(0 => "GET", 1 => "HEAD"))
986
&& preg_match("/firefox/i", $request->headers->get("User-Agent"))
987
)) {
0 commit comments