Skip to content

Commit efc9a0e

Browse files
committed
minor #7955 Fixed the parse() method in the ExpressionLanguage AST examples (javiereguiluz)
This PR was submitted for the 3.3 branch but it was merged into the 3.2 branch instead (closes #7955). Discussion ---------- Fixed the parse() method in the ExpressionLanguage AST examples This fixes #7943. Commits ------- 551624d Fixed the parse() method in the ExpressionLanguage AST examples
2 parents a869d2d + 551624d commit efc9a0e

File tree

1 file changed

+2
-2
lines changed
  • components/expression_language

1 file changed

+2
-2
lines changed

components/expression_language/ast.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ method after parsing any expression to get its AST::
2121
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
2222

2323
$ast = (new ExpressionLanguage())
24-
->parse('1 + 2')
24+
->parse('1 + 2', array())
2525
->getNodes()
2626
;
2727

@@ -41,7 +41,7 @@ method to turn the AST into an array::
4141
// ...
4242

4343
$astAsArray = (new ExpressionLanguage())
44-
->parse('1 + 2')
44+
->parse('1 + 2', array())
4545
->getNodes()
4646
->toArray()
4747
;

0 commit comments

Comments
 (0)