-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Closed
Copy link
Labels
BugFrameworkBundleHelp wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.Status: Reviewed
Description
Symfony version(s) affected
7.0.0
Description
PHPUnit 11 checks for any leftovers in error handlers sebastianbergmann/phpunit#5619
How to reproduce
Run FrameworkBundle->boot() in phpunit test.
| $handler = ErrorHandler::register(null, false); |
It results in Test code or tested code did not remove its own exception handlers thrown by phpunit.
Possible Solution
Introduce FrameworkBundle::shutdown() that would cleanup error handler set in boot(). IMO it's reasonable to have some cleanup in shutdown() of things initiated in boot().
Additional Context
No response
apiv-thomas, marmichalski, garak, iquito, kaznovac and 17 more
Metadata
Metadata
Assignees
Labels
BugFrameworkBundleHelp wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.Status: Reviewed