diff --git a/src/Error/ErrorHandler.php b/src/Error/ErrorHandler.php index 3bc707e53d..fed3cccd8d 100644 --- a/src/Error/ErrorHandler.php +++ b/src/Error/ErrorHandler.php @@ -208,7 +208,7 @@ class ErrorHandler $isSilenced = (error_reporting() & $errno) === 0; $config = Config::getInstance(); - if ($config->config->environment === 'development' && ! $isSilenced) { + if ($config->config->environment === 'development' && ! $isSilenced && $errno !== E_DEPRECATED) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); }