ErrorReporterInterface - php-fast-forward/defer GitHub Wiki

This interface MUST be implemented by any class that reports exceptions from deferred callbacks.

Implementations SHALL provide a report() method that handles the throwable, callback, and arguments.


  • Full name: \FastForward\Defer\ErrorReporterInterface

Methods

report

Reports an exception from a deferred callback.

public report(\Throwable $throwable, callable|null $callback = null, array $arguments = []): void

This method MUST handle the throwable and MAY use the callback and arguments for context.

Parameters:

Parameter Type Description
$throwable \Throwable the exception to report
$callback callable|null the related callback, if available
$arguments array arguments passed to the callback, if any

⚠️ **GitHub.com Fallback** ⚠️