From 17bbdb6a6d66739875da583e40251933f694afc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 22 Sep 2021 12:30:54 +0200 Subject: [PATCH] Remove `is_countable` polyfill from install.php see a178c052b8ecc5b1306607955702d6acf2ac254e --- wcfsetup/install.php | 4 ---- 1 file changed, 4 deletions(-) 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. -- 2.20.1