Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to set_exception_handler ignores previously set callbacks #392

Closed
mterwill opened this issue Jul 26, 2017 · 0 comments
Closed

Call to set_exception_handler ignores previously set callbacks #392

mterwill opened this issue Jul 26, 2017 · 0 comments

Comments

@mterwill
Copy link
Contributor

My app leverages a custom exception handler. It is registered early on, before the bugsnag handler. When I register the bugsnag handler, it overwrites my custom exception handler.

Because set_exception_handler returns the previously set callback, it is possible to create a nice stack of these exception handling callbacks. It would be nice if Bugsnag\Handler::register respected this pattern. One example implementation of the expected behavior is Monolog\ErrorHandler.

set_error_handler also returns the previously set callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant