PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Static Public Member Functions | |
static | clearLastSilencedError () |
static | getAndClearLastSilencedError () |
static | getLastSilencedError () |
static | handle (int $severity, string $message, string $file, int $line) |
static | set (int $levels=E_WARNING|E_NOTICE) |
static | trap (\Closure $closure, int $levels=E_WARNING|E_NOTICE) |
static | trapAndRemoveFalse (\Closure $closure, int $levels=E_WARNING|E_NOTICE) |
Definition at line 28 of file ErrorToExceptionHandler.php.
|
static |
Definition at line 55 of file ErrorToExceptionHandler.php.
|
static |
@phpstan-impure
Definition at line 60 of file ErrorToExceptionHandler.php.
|
static |
Definition at line 48 of file ErrorToExceptionHandler.php.
|
static |
|
static |
Shorthand method to set the error-to-exception error handler.
Definition at line 69 of file ErrorToExceptionHandler.php.
|
static |
Runs the given closure, and converts any E_WARNING or E_NOTICE it triggers to ErrorException, bypassing silence operators or existing error handlers.
@phpstan-template TReturn @phpstan-param \Closure() : TReturn $closure
@phpstan-return TReturn
ErrorException
Definition at line 96 of file ErrorToExceptionHandler.php.
|
static |
Same as trap(), but removes false from the set of possible return values. Mainly useful for PHPStan to unfalsify the results of stdlib functions that normally return false when emitting warnings.
@phpstan-template TReturn @phpstan-param \Closure() : (TReturn|false) $closure
@phpstan-return TReturn
ErrorException
Definition at line 115 of file ErrorToExceptionHandler.php.