Skip to content

Commit 45332c2

Browse files
committed
Added the rtrim function
1 parent d678685 commit 45332c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function getFunctions(): array
2525
ExpressionFunction::fromPhp('json_decode', 'decode'),
2626
ExpressionFunction::fromPhp('preg_replace', 'replaceByExpression'),
2727
ExpressionFunction::fromPhp('ucwords', 'capitalizeWords'),
28+
ExpressionFunction::fromPhp('rtrim', 'removeWhitespaces'),
2829
new FileName('fileName'),
2930
new DateTime('dateTime'),
3031
new FormatDate('formatDate'),

0 commit comments

Comments
 (0)