From: Tim Düsterhus Date: Tue, 21 Sep 2021 15:40:15 +0000 (+0200) Subject: Remove custom `is_countable` polyfill from core.functions.php X-Git-Tag: 5.5.0_Alpha_1~427^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a178c052b8ecc5b1306607955702d6acf2ac254e;p=GitHub%2FWoltLab%2FWCF.git Remove custom `is_countable` polyfill from core.functions.php This is provided by symfony/polyfill-php73. --- 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 {