(cp bf9a48f) fixes #2066 keep Smarty compatible with PHP 7.0

This commit is contained in:
plegall
2023-12-13 15:07:15 +01:00
parent 6e2215a8f4
commit ef5e2a68ea
3 changed files with 4 additions and 4 deletions
@@ -18,7 +18,7 @@
*
* @return array
*/
function smarty_modifier_explode($separator, $string, ?int $limit = null)
function smarty_modifier_explode($separator, $string, $limit = null)
{
// provide $string default to prevent deprecation errors in PHP >=8.1
return explode($separator, $string ?? '', $limit ?? PHP_INT_MAX);