Upgrade Pest to ^3.0 for PHP 8.5 compatibility#298
Merged
Conversation
Pest ^2.0 pins PHPUnit 10.x, which has no paratest release compatible with PHP 8.5. Composer can no longer resolve the dev dependencies on PHP 8.5. Pest ^3.0 resolves cleanly (PHPUnit 11.x) and the existing test suite passes unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the development test runner dependency to resolve Composer dependency resolution on PHP 8.5 by moving from Pest v2 (PHPUnit 10) to Pest v3 (PHPUnit 11).
Changes:
- Bump
pestphp/pestfrom^2.0to^3.0inrequire-dev.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
nikita-masalov
approved these changes
Jun 5, 2026
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.
Related Tickets & Documents
Description
pestphp/pest ^2.0pins PHPUnit 10.x. There is nobrianium/paratestrelease that supports both PHPUnit 10.x and PHP 8.5, socomposer installcan no longer resolve the dev dependencies on PHP 8.5 (which the latestcomposerimage now ships).Upgrading to
pestphp/pest ^3.0resolves cleanly (PHPUnit 11.x, all PHP 8.5 compatible). The existing functional test suite uses only stable Pest syntax and passes unchanged — no v2→v3 breaking changes apply.Type of PR
Manual testing
Ran
composer installfollowed bycomposer teston PHP 8.5: dependencies resolve and all tests pass.Automated tests added?