Skip to content

Commit be4428d

Browse files
novah77OskarStark
authored andcommitted
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 70345ee commit be4428d

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)