File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
components/expression_language Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Both ``evaluate()`` and ``compile()`` can handle ``ParsedExpression`` and
54
54
use Symfony\Component\ExpressionLanguage\ParsedExpression;
55
55
// ...
56
56
57
- $expression = new ParsedExpression($language->parse('1 + 4'));
57
+ $expression = new ParsedExpression($language->parse('1 + 4', array() ));
58
58
59
59
echo $language->evaluate($expression); // prints 5
60
60
@@ -64,7 +64,7 @@ Both ``evaluate()`` and ``compile()`` can handle ``ParsedExpression`` and
64
64
// ...
65
65
66
66
$expression = new SerializedParsedExpression(
67
- serialize($language->parse('1 + 4'))
67
+ serialize($language->parse('1 + 4', array() ))
68
68
);
69
69
70
70
echo $language->evaluate($expression); // prints 5
You can’t perform that action at this time.
0 commit comments