We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 755b1c1 commit 235cf33Copy full SHA for 235cf33
components/expression_language/extending.rst
@@ -35,7 +35,7 @@ This method has 3 arguments:
35
36
$language = new ExpressionLanguage();
37
$language->register('lowercase', function ($str) {
38
- return sprintf('$result = (is_string(%1$s)) ? strtolower(%1$s) : %1$s; return $result;', $str);
+ is_string(%1$s) ? strtolower(%1$s) : %1$s;
39
}, function ($arguments, $str) {
40
if (!is_string($str)) {
41
return $str;
0 commit comments