ErrorLogErrorReporter
in package
implements
ErrorReporterInterface
FinalYes
This error reporter implementation MUST log all reported exceptions using error_log.
It SHALL provide a detailed log message including the exception class, message, file, line, and callback description. This class MUST NOT throw exceptions during reporting.
Table of Contents
Interfaces
- ErrorReporterInterface
- This interface MUST be implemented by any class that reports exceptions from deferred callbacks.
Methods
- report() : void
- Reports a throwable using error_log.
Methods
report()
Reports a throwable using error_log.
public
report(Throwable $throwable[, callable|null $callback = null ][, array<string|int, mixed> $args = [] ]) : void
This method MUST log the exception details and callback description. It MUST NOT throw exceptions.
Parameters
- $throwable : Throwable
-
the exception or error to report
- $callback : callable|null = null
-
the related callback, if available
- $args : array<string|int, mixed> = []
-
arguments passed to the callback, if any