From 1c1c3c49ad47abdd13b141004911e2bfcd617d63 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Wed, 27 Mar 2024 23:08:42 +0100 Subject: [PATCH] Fix code styling --- src/ErrorHandlers/ThrowErrorException.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ErrorHandlers/ThrowErrorException.php b/src/ErrorHandlers/ThrowErrorException.php index f0ccd93..f9ff9af 100644 --- a/src/ErrorHandlers/ThrowErrorException.php +++ b/src/ErrorHandlers/ThrowErrorException.php @@ -52,12 +52,8 @@ class ThrowErrorException * * @throws ErrorException if `error_reporting` is set to report the error */ - public function __invoke( - int $errno = E_USER_ERROR, - string $errstr = '', - ?string $errfile = null, - ?int $errline = null - ): bool { + public function __invoke(int $errno = E_USER_ERROR, string $errstr = '', ?string $errfile = null, ?int $errline = null): bool + { if ((error_reporting() & $errno) > 0) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); }