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 e19ab95 commit c5d35c0Copy full SHA for c5d35c0
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 (0 === strpos($pathinfo, '/contact') && (
+ if ($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