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 228111b commit fb5e820Copy full SHA for fb5e820
book/routing.rst
@@ -833,7 +833,7 @@ variables that are passed into the expression:
833
Behind the scenes, expressions are compiled down to raw PHP. Our example
834
would generate the following PHP in the cache directory::
835
836
- if (rtrim($pathinfo, '/contact') === '' && (
+ if (0 === strpos($pathinfo, '/contact') && (
837
in_array($context->getMethod(), array(0 => "GET", 1 => "HEAD"))
838
&& preg_match("/firefox/i", $request->headers->get("User-Agent"))
839
)) {
0 commit comments