Skip to content

Conversation

@elliota43
Copy link

Implements feature request #1373 to allow customizing which error types are handled by the debugbar error handler. This is especially useful for PHP 8.2 projects using dynamic properties where deprecation warnings can be filtered out.

  • Add error_level config option (defaults to E_ALL)
  • Pass error_level to set_error_handler() as second parameter
  • Add tests to verify custom error level filtering works correctly

Users can now exclude deprecation warnings by setting:

error_level: E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED

#1373

…yvdh#1373)

Implements feature request barryvdh#1373 to allow customizing which error types
are handled by the debugbar error handler. This is especially useful for
PHP 8.2 projects using dynamic properties where deprecation warnings
can be filtered out.

- Add `error_level` config option (defaults to E_ALL)
- Pass error_level to set_error_handler() as second parameter
- Add tests to verify custom error level filtering works correctly

Users can now exclude deprecation warnings by setting:

`error_level: E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED`
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

Successfully merging this pull request may close these issues.

1 participant