From 044603465e64e40501974e4e1a0063176a0d5e92 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Sun, 19 Nov 2023 13:52:22 +0100 Subject: [PATCH] Set default error code to E_USER_ERROR --- src/Functions/throwErrorException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);