Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/expression_language/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ method after parsing any expression to get its AST::
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;

$ast = (new ExpressionLanguage())
->parse('1 + 2')
->parse('1 + 2', array())
->getNodes()
;

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

$astAsArray = (new ExpressionLanguage())
->parse('1 + 2')
->parse('1 + 2', array())
->getNodes()
->toArray()
;
Expand Down