Skip to content

Commit 6be6359

Browse files
committed
bug #20169 [ExpressionLanguage] Fix uncaught ArgumentCountError (novah77)
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead. Discussion ---------- [ExpressionLanguage] Fix uncaught ArgumentCountError Set second argument with an empty array for the two instructions to get rid of the fatal error uncaught argumentError <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- be4428d Fix Uncaught ArgumentCountError
2 parents 70345ee + be4428d commit 6be6359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/expression_language.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ other hand, returns a boolean indicating if the expression is valid or not::
9999

100100
$expressionLanguage = new ExpressionLanguage();
101101

102-
var_dump($expressionLanguage->parse('1 + 2'));
102+
var_dump($expressionLanguage->parse('1 + 2', []));
103103
// displays the AST nodes of the expression which can be
104104
// inspected and manipulated
105105

106-
var_dump($expressionLanguage->lint('1 + 2')); // displays true
106+
var_dump($expressionLanguage->lint('1 + 2', [])); // displays true
107107

108108
Passing in Variables
109109
--------------------

0 commit comments

Comments
 (0)