Permalink
Browse files

bug #4598 [ExpressionLanguage] add missing argument (xabbuh)

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 8b611e2258df776a10bce46be09215e3d3d003fc
Showing with 3 additions and 3 deletions.
  1. +3 −3 components/expression_language/caching.rst
@@ -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
@@ -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

0 comments on commit 8b611e2

Please sign in to comment.