From a178c052b8ecc5b1306607955702d6acf2ac254e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 21 Sep 2021 17:40:15 +0200 Subject: [PATCH] Remove custom `is_countable` polyfill from core.functions.php This is provided by symfony/polyfill-php73. --- wcfsetup/install/files/lib/core.functions.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index 9212eed50e..55a95dc090 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -84,12 +84,6 @@ namespace { if (@ini_get('zlib.output_compression')) { @ini_set('zlib.output_compression', '0'); } - - if (!function_exists('is_countable')) { - function is_countable($var) { - return is_array($var) || $var instanceof Countable || $var instanceof ResourceBundle || $var instanceof SimpleXmlElement; - } - } } namespace wcf { -- 2.20.1