Skip to content

Commit 851e5f0

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [ExpressionLanguage] Fix backslashes count
2 parents c4b9133 + fa5eaf9 commit 851e5f0

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
@@ -162,7 +162,7 @@ This also works with class constants::
162162
}
163163

164164
var_dump($expressionLanguage->evaluate(
165-
'constant("App\\\SomeNamespace\\\Foo::API_ENDPOINT")'
165+
'constant("App\\\\SomeNamespace\\\\Foo::API_ENDPOINT")'
166166
));
167167

168168
This will print out ``/api``.
@@ -180,7 +180,7 @@ This function will return the case of an enumeration::
180180
}
181181

182182
var_dump(App\Enum\Foo::Bar === $expressionLanguage->evaluate(
183-
'enum("App\\\SomeNamespace\\\Foo::Bar")'
183+
'enum("App\\\\SomeNamespace\\\\Foo::Bar")'
184184
));
185185

186186
This will print out ``true``.

0 commit comments

Comments
 (0)