Skip to content

Commit e8ac87b

Browse files
authored
Fix Uncaught ArgumentCountError
Set second argument with an empty array for the two instructions to get rid of the fatal error uncaught argumentError
1 parent 089f71f commit e8ac87b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/expression_language.rst

Lines changed: 2 additions & 2 deletions
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
The behavior of these methods can be configured with some flags defined in the
109109
:class:`Symfony\\Component\\ExpressionLanguage\\Parser` class:

0 commit comments

Comments
 (0)