/**
* The callback to be registered to `set_error_handler()`.
*
* @return bool
*
* @throws ErrorException
*
* @codeCoverageIgnore
*/
public function errorHandler(int
$severity, string
$message, ?string
$file = null, ?int
$line = null
) { if ($this->
isDeprecationError($severity)) { if (!
$this->config->logDeprecations ||
(bool) env('CODEIGNITER_SCREAM_DEPRECATIONS'
)) { throw new ErrorException($message, 0,
$severity,
$file,
$line);
} return $this->
handleDeprecationError($message,
$file,
$line);
} if (error_reporting() &
$severity) { throw new ErrorException($message, 0,
$severity,
$file,
$line);
}