UndefinedMethodFatalErrorHandler
in package
implements
FatalErrorHandlerInterface
ErrorHandler for undefined methods.
Tags
Interfaces, Classes, Traits and Enums
- FatalErrorHandlerInterface
- Attempts to convert fatal errors to exceptions.
Table of Contents
- handleError() : FatalErrorException|null
- Attempts to convert an error into an exception.
Methods
handleError()
Attempts to convert an error into an exception.
public
handleError(array<string|int, mixed> $error, FatalErrorException $exception) : FatalErrorException|null
Parameters
- $error : array<string|int, mixed>
-
An array as returned by error_get_last()
- $exception : FatalErrorException
Return values
FatalErrorException|null —A FatalErrorException instance if the class is able to convert the error, null otherwise