From a58d869502e270bc7d02d245f5e2022937a398aa Mon Sep 17 00:00:00 2001 From: Wim Wisselink Date: Wed, 27 Mar 2024 11:48:38 +0100 Subject: [PATCH] Deprecation fix for providing a non string value to ctype_digit (#960) --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index 5396ffcb9..590789ba3 100644 --- a/src/functions.php +++ b/src/functions.php @@ -66,7 +66,7 @@ function smarty_make_timestamp($string) || (interface_exists('DateTimeInterface', false) && $string instanceof DateTimeInterface) ) { return (int)$string->format('U'); // PHP 5.2 BC - } elseif (strlen($string) === 14 && ctype_digit($string)) { + } elseif (strlen($string) === 14 && ctype_digit((string)$string)) { // it is mysql timestamp format of YYYYMMDDHHMMSS? return mktime( substr($string, 8, 2),