From 0750fd7f1e376ad61f40ec4cb61cf878aef3e957 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Tue, 8 Aug 2023 00:00:20 +0200 Subject: [PATCH] Some more missed commits --- src/Compile/Modifier/CountCharactersModifierCompiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compile/Modifier/CountCharactersModifierCompiler.php b/src/Compile/Modifier/CountCharactersModifierCompiler.php index 6411a55a5..0afad80b9 100644 --- a/src/Compile/Modifier/CountCharactersModifierCompiler.php +++ b/src/Compile/Modifier/CountCharactersModifierCompiler.php @@ -17,7 +17,7 @@ public function compile($params, \Smarty\Compiler\Template $compiler) { if (!isset($params[ 1 ]) || $params[ 1 ] !== 'true') { return 'preg_match_all(\'/[^\s]/' . \Smarty\Smarty::$_UTF8_MODIFIER . '\',' . $params[ 0 ] . ', $tmp)'; } - return 'mb_strlen(' . $params[ 0 ] . ', \'' . addslashes(\Smarty\Smarty::$_CHARSET) . '\')'; + return 'mb_strlen((string) ' . $params[ 0 ] . ', \'' . addslashes(\Smarty\Smarty::$_CHARSET) . '\')'; } } \ No newline at end of file