Set default error code to E_USER_ERROR

This commit is contained in:
Sebastian Meyer 2023-11-19 13:52:22 +01:00
parent afd6ec6e92
commit 044603465e
1 changed files with 1 additions and 1 deletions

View File

@ -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);