8000 Removed return statement · symfony/symfony-docs@235cf33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 235cf33

Browse files
raulfraileweaverryan
authored andcommitted
Removed return statement
1 parent 755b1c1 commit 235cf33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/expression_language/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This method has 3 arguments:
3535
3636
$language = new ExpressionLanguage();
3737
$language->register('lowercase', function ($str) {
38-
return sprintf('$result = (is_string(%1$s)) ? strtolower(%1$s) : %1$s; return $result;', $str);
38+
is_string(%1$s) ? strtolower(%1$s) : %1$s;
3939
}, function ($arguments, $str) {
4040
if (!is_string($str)) {
4141
return $str;

0 commit comments

Comments
 (0)
0