-
Notifications
You must be signed in to change notification settings - Fork 0
ErrorLogErrorReporter
github-actions edited this page Mar 26, 2026
·
1 revision
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.
- Full name:
\FastForward\Defer\ErrorReporter\ErrorLogErrorReporter - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\Defer\ErrorReporterInterface - This class is a Final class
Reports a throwable using error_log.
public report(\Throwable $throwable, callable|null $callback = null, array $args = []): voidThis method MUST log the exception details and callback description. It MUST NOT throw exceptions.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$throwable |
\Throwable | the exception or error to report |
$callback |
callable|null | the related callback, if available |
$args |
array | arguments passed to the callback, if any |