minor #9473 Fixed ExpressionLanguage Readme (peterrehm)

This PR was merged into the master branch.

Discussion
----------

Fixed ExpressionLanguage Readme

Added missing parameter due to which the code in the documentation was not executable.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

03a76f5 Added missing parameter to the compile function
This commit is contained in:
Fabien Potencier 2013-11-08 17:04:41 +01:00
commit fe9c8bf340

View File

@ -11,7 +11,7 @@ evaluate expressions:
echo $language->evaluate('1 + foo', array('foo' => 2)); echo $language->evaluate('1 + foo', array('foo' => 2));
// would output 3 // would output 3
echo $language->compile('1 + foo'); echo $language->compile('1 + foo', array('foo'));
// would output (1 + $foo) // would output (1 + $foo)
By default, the engine implements simple math and logic functions, method By default, the engine implements simple math and logic functions, method