Skip to content

Commit c5d35c0

Browse files
wouterjjaviereguiluz
authored andcommitted
Reverted fb5e82
1 parent e19ab95 commit c5d35c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ variables that are passed into the expression:
986986
Behind the scenes, expressions are compiled down to raw PHP. Our example
987987
would generate the following PHP in the cache directory::
988988

989-
if (0 === strpos($pathinfo, '/contact') && (
989+
if ($pathinfo === '/contact' && (
990990
in_array($context->getMethod(), array(0 => "GET", 1 => "HEAD"))
991991
&& preg_match("/firefox/i", $request->headers->get("User-Agent"))
992992
)) {

0 commit comments

Comments
 (0)