1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 05:07:41 +02:00

fix(expressions): fix strings expression function

This commit is contained in:
Awilum
2022-09-02 18:19:30 +03:00
parent 61d49a1938
commit 56e68bfc78

View File

@@ -25,6 +25,6 @@ class StringsExpression implements ExpressionFunctionProviderInterface
{
public function getFunctions()
{
return [new ExpressionFunction('strings', static fn ($str) => '\Glowy\Strings\strings($str)', static fn ($arguments, $str) => strings($str))];
return [new ExpressionFunction('strings', static fn ($string = '', $encoding = 'UTF-8') => '\Glowy\Strings\strings($string, $encoding)', static fn ($arguments, $string = '', $encoding = 'UTF-8') => strings($string, $encoding))];
}
}