Skip to content

Commit 86a10b4

Browse files
authored
[ExpressionLanguage] Fix backslashes count
1 parent 45ad3bf commit 86a10b4

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)