Remove custom `is_countable` polyfill from core.functions.php
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 21 Sep 2021 15:40:15 +0000 (17:40 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 22 Sep 2021 07:29:02 +0000 (09:29 +0200)
This is provided by symfony/polyfill-php73.

wcfsetup/install/files/lib/core.functions.php

index 9212eed50e776491edb3d7f8aa1129ead976b041..55a95dc090d297c80e6412296f637ae1737e0dc0 100644 (file)
@@ -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 {