Skip to content

Conversation

@HypeMC
Copy link
Member

@HypeMC HypeMC commented Jun 3, 2025

Q A
Branch? 7.2
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix symfony/recipes#1425 (comment)
License MIT

As suggested by @wouterj, this will skip the bootstrap file that is automatically required by the bridge's composer.json.

I'm not sure whether to skip the entire file or only the part that registers the DeprecationErrorHandler.

@carsonbot

This comment was marked as resolved.

@HypeMC HypeMC changed the base branch from 7.4 to 7.2 June 3, 2025 04:22
@HypeMC HypeMC modified the milestones: 7.4, 7.2 Jun 3, 2025
@stof
Copy link
Member

stof commented Jun 3, 2025

The part about configuring doctrine deprecations might still be useful.

@HypeMC HypeMC force-pushed the skip-bootstrap-for-phpunit-gte-10 branch from 1f84a82 to 36974c3 Compare June 3, 2025 12:04
@HypeMC
Copy link
Member Author

HypeMC commented Jun 3, 2025

@stof I've applied the condition only to the parts related to DeprecationErrorHandler.

@nicolas-grekas
Copy link
Member

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit 47f3667 into symfony:7.2 Jun 4, 2025
18 of 24 checks passed
@HypeMC HypeMC deleted the skip-bootstrap-for-phpunit-gte-10 branch June 4, 2025 08:35
This was referenced Jun 28, 2025
nicolas-grekas added a commit that referenced this pull request Sep 29, 2025
…nsion (HypeMC)

This PR was merged into the 7.4 branch.

Discussion
----------

[PhpUnitBridge] Move Doctrine deprecations setup to extension

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

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.php` file can be completely removed.

Commits
-------

173dca6 [PhpUnitBridge] Move Doctrine deprecations setup to extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants