Fix code-styling

This commit is contained in:
Sebastian Meyer 2024-03-31 17:47:24 +02:00
parent 3670945f3e
commit d8268e464f
2 changed files with 7 additions and 3 deletions

View File

@ -52,8 +52,12 @@ class ThrowErrorException
* *
* @throws ErrorException if `error_reporting` is set to report the error * @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) { if ((error_reporting() & $errno) > 0) {
throw new ErrorException($errstr, 0, $errno, $errfile, $errline); throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
} }

View File

@ -57,6 +57,6 @@ class TriggerExceptionError
$exception->getLine(), $exception->getLine(),
$exception->getMessage() $exception->getMessage()
); );
trigger_error($message, E_USER_ERROR); trigger_error($message, \E_USER_ERROR);
} }
} }