Skip to content

Commit d86e542

Browse files
committed
[#3315] Adding a little bit more information about the $arguments argument
1 parent abe419b commit d86e542

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/expression_language/extending.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ This method has 3 arguments:
5050
5151
echo $language->evaluate('lowercase("HELLO")');
5252
53-
This will print ``hello``.
53+
This will print ``hello``. Both the **compiler** and **evaluator** are passed
54+
an ``arguments`` variable as their first argument, which is equal to the
55+
second argument to ``evaluate()`` or ``compile()`` (e.g. the "values" when
56+
evaluating or the "names" if compiling).
5457

5558
Creating a new ExpressionLanguage Class
5659
---------------------------------------

0 commit comments

Comments
 (0)