From 56e68bfc78420eba13d2ccf2bbc8952d962ccc85 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 2 Sep 2022 18:19:30 +0300 Subject: [PATCH] fix(expressions): fix `strings` expression function --- src/flextype/core/Entries/Expressions/StringsExpression.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/core/Entries/Expressions/StringsExpression.php b/src/flextype/core/Entries/Expressions/StringsExpression.php index 000617a5..4a711046 100644 --- a/src/flextype/core/Entries/Expressions/StringsExpression.php +++ b/src/flextype/core/Entries/Expressions/StringsExpression.php @@ -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))]; } }