Set default error code to E_USER_ERROR
This commit is contained in:
parent
afd6ec6e92
commit
044603465e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue