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