Skip to content

Commit

Permalink
bug #4598 [ExpressionLanguage] add missing argument (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.5 branch.

Discussion
----------

[ExpressionLanguage] add missing argument

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.5+
| Fixed tickets | #4578

Commits
-------

4801a3c [ExpressionLanguage] add missing argument
  • Loading branch information
wouterj committed Dec 17, 2014
2 parents 815e0bf + 4801a3c commit 8b611e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/expression_language/caching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ Using Parsed and Serialized Expressions
Both ``evaluate()`` and ``compile()`` can handle ``ParsedExpression`` and
``SerializedParsedExpression``::

use Symfony\Component\ExpressionLanguage\ParsedExpression;
// ...

$expression = new ParsedExpression($language->parse('1 + 4'));
// the parse() method returns a ParsedExpression
$expression = $language->parse('1 + 4', array());

echo $language->evaluate($expression); // prints 5

Expand All @@ -64,7 +64,7 @@ Both ``evaluate()`` and ``compile()`` can handle ``ParsedExpression`` and
// ...
$expression = new SerializedParsedExpression(
serialize($language->parse('1 + 4'))
serialize($language->parse('1 + 4', array()))
);
echo $language->evaluate($expression); // prints 5
Expand Down

0 comments on commit 8b611e2

Please sign in to comment.