Skip to content

Commit a45464f

Browse files
committed
Added missing argument to the evaluator function
1 parent 6212968 commit a45464f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/expression_language/extending.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This method has 3 arguments:
4040
}
4141
4242
return sprintf('strtolower(%s)', $str);
43-
}, function ($str) {
43+
}, function ($arguments, $str) {
4444
if (!is_string($str)) {
4545
return $str;
4646
}
@@ -75,7 +75,7 @@ Override ``registerFunctions`` to add your own functions::
7575
}
7676

7777
return sprintf('strtolower(%s)', $str);
78-
}, function ($str) {
78+
}, function ($arguments, $str) {
7979
if (!is_string($str)) {
8080
return $str;
8181
}

0 commit comments

Comments
 (0)