Skip to content

Commit 551624d

Browse files
javiereguiluzxabbuh
authored andcommitted
Fixed the parse() method in the ExpressionLanguage AST examples
1 parent a869d2d commit 551624d

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)