Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #33950 [FrameworkBundle] Avoid using of kernel after shutdown i…
…n KernelTestCase (alexander-schranz) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Avoid using of kernel after shutdown in KernelTestCase | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #... | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> I had sadly something like this in my codebase: ```php if (!static::$kernel) { static::bootKernel(); } ``` As the $kernel is never set again to null a old $kernel was still there. I would not only set the $container also the $kernel variable to null. ~~As this could be a BC Break I'm targeting master~~. Commits ------- 49b58ed Avoid using of kernel after shutdown
- Loading branch information