From 7e142722d464bac5c34e4b5a96e7cc46a0e4a1ad Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 19 Nov 2024 00:00:45 +0900 Subject: [PATCH] Remove polyfill for is_countable() --- common/functions.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/common/functions.php b/common/functions.php index ae2616abe..d2b2d0d23 100644 --- a/common/functions.php +++ b/common/functions.php @@ -740,20 +740,6 @@ function is_empty_html_content($str): bool return $str === ''; } -/** - * Polyfill for is_countable() in PHP < 7.3 - * - * @param mixed $var - * @return bool -**/ -if (!function_exists('is_countable')) -{ - function is_countable($var) - { - return is_array($var) || $var instanceof Countable; - } -} - /** * Polyfill for str_starts_with() in PHP < 8.0 *