Skip to content

Commit b998a55

Browse files
committed
minor #21265 [ExpressionLanguage] Fix backslashes count (MatTheCat)
This PR was merged into the 6.4 branch. Discussion ---------- [ExpressionLanguage] Fix backslashes count Since a backslash must be escaped by three backslashes, you need four in total. Commits ------- 86a10b4 [ExpressionLanguage] Fix backslashes count
2 parents ae76d6d + 86a10b4 commit b998a55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/formats/expression_language.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ This also works with class constants::
178178
}
179179

180180
var_dump($expressionLanguage->evaluate(
181-
'constant("App\\\SomeNamespace\\\Foo::API_ENDPOINT")'
181+
'constant("App\\\\SomeNamespace\\\\Foo::API_ENDPOINT")'
182182
));
183183

184184
This will print out ``/api``.
@@ -196,7 +196,7 @@ This function will return the case of an enumeration::
196196
}
197197

198198
var_dump(App\Enum\Foo::Bar === $expressionLanguage->evaluate(
199-
'enum("App\\\SomeNamespace\\\Foo::Bar")'
199+
'enum("App\\\\SomeNamespace\\\\Foo::Bar")'
200200
));
201201

202202
This will print out ``true``.

0 commit comments

Comments
 (0)