[PhpUnitBridge] Move Doctrine deprecations setup to extension#61863
Merged
nicolas-grekas merged 1 commit intosymfony:7.4from Sep 29, 2025
Merged
[PhpUnitBridge] Move Doctrine deprecations setup to extension#61863nicolas-grekas merged 1 commit intosymfony:7.4from
nicolas-grekas merged 1 commit intosymfony:7.4from
Conversation
nicolas-grekas
approved these changes
Sep 29, 2025
xabbuh
approved these changes
Sep 29, 2025
Member
|
Thank you @HypeMC. |
alexandre-daubois
added a commit
that referenced
this pull request
Oct 29, 2025
This PR was merged into the 7.4 branch. Discussion ---------- Fix the initialization of the phpunit bridge | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT When PHPUnit is installed through composer, the bootstrap.php file will be loaded *before* the `Metadata` class is autoloaded by PHPUnit itself. This was breaking the skipping of the initialization, which broke deprecation reporting by mixing the old system and PHPUnit 11 in my case. Before #61863, the old checks were triggering autoloading. Commits ------- 37c13ef Fix the initialization of the phpunit bridge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #60645
The
SymfonyExtension::bootstrap()method seems like a more appropriate place to configure Doctrine deprecations behavior.With this, once support for PHPUnit <10 i dropped, the
bootstrap.phpfile can be completely removed.