Skip to content

[PhpUnitBridge] revert patching of PHPUnit about memleak reports #61476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2025

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Aug 20, 2025

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

reverts #61469, sebastianbergmann/phpunit@0eae114 is part of PHPUnit 8.5.44, 9.6.25, 10.5.53, 11.5.34 and 12.3.6

The corresponding patch has been released for all relevant PHPUnit versions.
@nicolas-grekas
Copy link
Member

What about keeping the code? Maybe it could help some project upgrade more easily?

@stof
Copy link
Member

stof commented Aug 20, 2025

Why would a project run their testsuite on PHP 8.5 (which is not released yet) without using the latest patch release of their PHPUnit version ? I don't see why phpunit-bridge should maintain code covering that weird case (phpunit-bridge installs the latest version anyway AFAICT)

@xabbuh
Copy link
Member Author

xabbuh commented Aug 21, 2025

Why would a project run their testsuite on PHP 8.5 (which is not released yet) without using the latest patch release of their PHPUnit version ?

Well, someone still stuck on 12.0, 12.1, 12.2 for whatever reason would not get the patch. But I also doubt that in this someone would update to PHP 8.5.

Patching vendor code instead always bears the risk of breaking things inadvertently. The theoretical benefit of keeping it doesn’t outweigh that for me.

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 0f1cbf3 into symfony:7.4 Aug 21, 2025
12 of 13 checks passed
@xabbuh xabbuh deleted the pr-61469 branch August 21, 2025 07:51
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.

4 participants