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:
commit
fe9c8bf340
@ -11,7 +11,7 @@ evaluate expressions:
|
||||
echo $language->evaluate('1 + foo', array('foo' => 2));
|
||||
// would output 3
|
||||
|
||||
echo $language->compile('1 + foo');
|
||||
echo $language->compile('1 + foo', array('foo'));
|
||||
// would output (1 + $foo)
|
||||
|
||||
By default, the engine implements simple math and logic functions, method
|
||||
|
Reference in New Issue
Block a user