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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy