From f0aaecbded8d7f7e8d7e03932e0f8ee47ee91e81 Mon Sep 17 00:00:00 2001 From: "o.pinke" Date: Fri, 11 Mar 2022 18:32:43 +0100 Subject: [PATCH] change settings for error_reporting --- data/config/production/config.misc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/data/config/production/config.misc.php b/data/config/production/config.misc.php index 8cba9fa..8f4054d 100644 --- a/data/config/production/config.misc.php +++ b/data/config/production/config.misc.php @@ -159,12 +159,8 @@ if ($cfg["develop"]["show_errors"] if ($cfg["develop"]["show_deprecated"]) { error_reporting(E_ALL ^ E_NOTICE); } else { - if (version_compare(PHP_VERSION, '5.3.0', '<')) { // remove unknown deprecated for PHP < 5.3 - error_reporting(E_ALL ^ E_NOTICE); - } else if (version_compare(PHP_VERSION, '7.0.0', '>=')) { + if (version_compare(PHP_VERSION, '7.4.0', '>=')) { error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED ^ E_WARNING); - } else if (version_compare(PHP_VERSION, '5.4.0', '>=')) { - error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED ^ E_STRICT); } else { error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED); }