Skip to content

Commit c56fb10

Browse files
committed
Adding some ucfirst, substr and strtolower expressions
1 parent 7049893 commit c56fb10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ public function getFunctions(): array
1212
return [
1313
ExpressionFunction::fromPhp('sprintf', 'format'),
1414
ExpressionFunction::fromPhp('trim', 'trim'),
15-
ExpressionFunction::fromPhp('str_replace', 'replace'),
15+
ExpressionFunction::fromPhp('ucfirst'),
16+
ExpressionFunction::fromPhp('strtolower'),
17+
ExpressionFunction::fromPhp('substr'),
1618
new FileName('fileName'),
1719
new DateTime('dateTime'),
1820
new FormatDate('formatDate'),

0 commit comments

Comments
 (0)