Helpers::handleErrors()
Performs an action with custom handling for all PHP errors and warnings
Helpers::handleErrors(Closure $action, Closure $handler): mixed
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $action * | Closure |
– | Any action that may cause an error or warning |
| $handler * | Closure |
– | Custom callback like for set_error_handler();the first argument is a return value override passed by reference, the additional arguments come from set_error_handler(); returning false activateserror handling by Whoops and/or PHP |
Return type
mixed