Skip to content

[ExpressionLanguage] Add missing argument in example code #9764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/expression_language/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down