From: Tim Düsterhus Date: Wed, 22 Sep 2021 10:30:54 +0000 (+0200) Subject: Remove `is_countable` polyfill from install.php X-Git-Tag: 5.5.0_Alpha_1~424 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17bbdb6a6d66739875da583e40251933f694afc1;p=GitHub%2FWoltLab%2FWCF.git Remove `is_countable` polyfill from install.php see a178c052b8ecc5b1306607955702d6acf2ac254e --- diff --git a/wcfsetup/install.php b/wcfsetup/install.php index 47c700e89b..37ae0196c0 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -517,10 +517,6 @@ function handleError($errorNo, $message, $filename, $lineNo) { throw new SystemException('PHP '.$type.' in file '.$filename.' ('.$lineNo.'): '.$message, 0); } -if (!function_exists('is_countable')) { - function is_countable($var) { return is_array($var) || $var instanceof Countable || $var instanceof ResourceBundle || $var instanceof SimpleXmlElement; } -} - /** @noinspection PhpMultipleClassesDeclarationsInOneFile */ /** * BasicFileUtil contains file-related functions.