You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Just in case anybody needs a quick hack to work around this issue, I moved the initialization of Whoops into the middleware's constructor, which causes set_error_handler() to be called when the middleware is added via $app->pipe(new WhoopsMiddleware). Because Whoops's internal error handler converts errors into exceptions, the "ErrorException" gets handled the same way as thrown exceptions.
Since PHP 7 now converts errors into exceptions, it would be useful to add a
catch (Error $e)
to https://github.com/zendframework/zend-stratigility/blob/master/src/Dispatch.php#L83-L85 so that non-thrown errors like1/0
are also caught and sent to error middleware.This is very useful for using middleware to send errors to Sentry or display them in Whoops or BooBoo.
The text was updated successfully, but these errors were encountered: