chore: allow phpunit ^13.0 - #8537
Draft
mislavjakopovic wants to merge 1 commit into
Draft
mislavjakopovic wants to merge 1 commit into
mislavjakopovic wants to merge 1 commit into
Conversation
mislavjakopovic
marked this pull request as draft
September 16, 2026 13:45
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.
Since #7887
api-platform/testrequiresphpunit/phpunit ^11.5 || ^12.2, so it cannot be installed next to PHPUnit 13, although the classes run unchanged on it.Before the split those classes shipped inside
api-platform/symfony, which lists PHPUnit only inrequire-dev, a section Composer never enforces for dependencies, so PHPUnit 13 worked - the extraction moved that constraint intorequire, and this now blocks a "bleeding edge" migration to API Platform 5.This PR widens the constraint to
^11.5 || ^12.2 || ^13.0in the rootcomposer.jsonand inevery component manifest that pins it, same shape as c0886c1 (
^11.5) and #7623 (^12.2).Two test adjustments were needed for the suite to stay deprecation-free under 13:
ApiPlatform\Symfony\Bundle\Test\ApiTestCase; loading it triggers a deprecation that 13 counts, which would turnphpunit-no-deprecationsredGraphQlResolverPassTestusedwith()withoutexpects()on a mock, deprecated in 13 and rejected in 14.PHPUnit 13 requires PHP 8.4.1, so the 8.2 and 8.3 jobs will keep resolving 11.5 and 12; the 8.4
and 8.5 jobs move to 13 without a workflow change.
The root
conflictentry<9.5,phpunit.baseline.xmlanddocs/composer.json(^10, only reachable viarequire-devsince #8527) are untouched.