diff --git a/components/expression_language/extending.rst b/components/expression_language/extending.rst index 4c766c4cddc..c070184385d 100644 --- a/components/expression_language/extending.rst +++ b/components/expression_language/extending.rst @@ -45,11 +45,11 @@ This method has 3 arguments: }); var_dump($expressionLanguage->evaluate('lowercase("HELLO")')); + // this will print: hello -This will print ``hello``. Both the **compiler** and **evaluator** are passed -an ``arguments`` variable as their first argument, which is equal to the -second argument to ``evaluate()`` or ``compile()`` (e.g. the "values" when -evaluating or the "names" if compiling). +In addition to the custom function arguments, the **evaluator** is passed an +``arguments`` variable as its first argument, which is equal to the second +argument of ``compile()`` (e.g. the "values" when evaluating an expression). .. _components-expression-language-provider: