diff --git a/src/Functions/throwErrorException.php b/src/Functions/throwErrorException.php index 1c5e4ae..03b2593 100644 --- a/src/Functions/throwErrorException.php +++ b/src/Functions/throwErrorException.php @@ -41,7 +41,7 @@ use ErrorException; * * @throws ErrorException */ -function throwErrorException(int $severity = E_ALL, string $message = '', ?string $file = null, ?int $line = null): bool +function throwErrorException(int $severity = E_USER_ERROR, string $message = '', ?string $file = null, ?int $line = null): bool { if (error_reporting() & $severity) { throw new ErrorException($message, 0, $severity, $file, $line);