Description: Suppress Deprecated notices, upstream doesn't support PHP 8.2 yet. Author: Bas Couwenberg Bug: https://github.com/Icinga/icingaweb2/issues/4918 Bug-Debian: https://bugs.debian.org/1037925 --- a/library/Icinga/Application/ApplicationBootstrap.php +++ b/library/Icinga/Application/ApplicationBootstrap.php @@ -591,7 +591,7 @@ abstract class ApplicationBootstrap */ protected function setupErrorHandling() { - error_reporting(E_ALL | E_STRICT); + error_reporting(E_ALL & ~E_DEPRECATED | E_STRICT); ini_set('display_startup_errors', 1); ini_set('display_errors', 1); set_error_handler(function ($errno, $errstr, $errfile, $errline) { --- a/library/Icinga/Application/webrouter.php +++ b/library/Icinga/Application/webrouter.php @@ -8,7 +8,7 @@ use Icinga\Web\Controller\StaticControll use Icinga\Web\JavaScript; use Icinga\Web\StyleSheet; -error_reporting(E_ALL | E_STRICT); +error_reporting(E_ALL & ~E_DEPRECATED | E_STRICT); if (isset($_SERVER['REQUEST_URI'])) { $ruri = $_SERVER['REQUEST_URI'];