Raise mockery/mockery floor to ^1.3.1 for PHPUnit 8 compatibility#35
Merged
Conversation
Mockery < 1.2.3 declares MockeryPHPUnitIntegration::assertPostConditions() without the ': void' return type that PHPUnit 8's TestCase requires, which is a fatal error. The declared '^1.0' floor therefore could not actually install against the PHPUnit 8 now required, as the CI --prefer-lowest job exposed. Bump the floor to ^1.3.1. Validated on PHP 7.4 with --prefer-lowest (mockery 1.3.1 + symfony/console 4.0 + symfony/event-dispatcher 5.0 + phpunit 8.5.52): 131 tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR corrects the minimum supported mockery/mockery dev dependency so lowest-dependency installs remain compatible with the project’s PHPUnit 8 baseline.
Changes:
- Raises
mockery/mockeryfrom^1.0to^1.3.1. - Updates
composer.lockcontent hash without changing the resolved Mockery version.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
composer.json |
Updates the Mockery dev dependency floor for PHPUnit 8 compatibility. |
composer.lock |
Refreshes the lockfile content hash for the dependency constraint change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced May 27, 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.
Summary
The
--prefer-lowestCI job (added in #34) surfaced that the declaredmockery/mockery: ^1.0floor cannot actually install against the PHPUnit 8 the project now requires:Mockery added the
: voidreturn types PHPUnit 8 requires in 1.2.3 / 1.3.0, so the real floor is higher than^1.0. This raises it to^1.3.1(the 1.3.x LTS line, PHP 7.2–8.0).Only the minimum was wrong — the default (highest) resolution already picked a modern Mockery, so this doesn't change the committed lock's resolved versions, only the constraint + content-hash.
Verification (PHP 7.4)
--prefer-lowest: resolves mockery 1.3.1 + symfony/console 4.0 + symfony/event-dispatcher 5.0 + phpunit 8.5.52 → 131 tests pass.🤖 Generated with Claude Code