Drop PHP 8.2 support and add PHP 8.4/8.5 testing#119
Merged
Conversation
- Update phpunit/phpunit constraint from ^11 || ^12 to ^12 || ^13 - Add PHP 8.4 to CI test matrix (required by PHPUnit 13) PHPUnit 11 no longer receives bug fixes, while PHPUnit 13 (released Feb 2026) requires PHP 8.4+. The existing codebase is fully compatible with v13 — no source code or config changes needed. https://claude.ai/code/session_01N6BJAgbZC1FeeyzhMSoXgX
- Bump minimum PHP requirement from ^8.2 to ^8.3 - Update all CI workflows (ci, static-analysis, coding-standards, infection) from PHP 8.2 to 8.3 - Add PHP 8.5 to the CI test matrix https://claude.ai/code/session_01N6BJAgbZC1FeeyzhMSoXgX
PHP 8.4 allows ReflectionProperty::setValue() to set readonly properties from any scope. Update testPublicReadonlyPropertyCannotBeSet to assert successful set on PHP 8.4+ while preserving the error expectation for PHP 8.3. Also disable fail-fast in CI matrix so all combinations run independently. https://claude.ai/code/session_01N6BJAgbZC1FeeyzhMSoXgX
setAccessible() is a no-op since PHP 8.1 and deprecated in PHP 8.5. Remove both calls in Stub.php. Add explicit `use const PHP_VERSION_ID` import in StubTest to satisfy the coding standard requiring imports over fallback global names. https://claude.ai/code/session_01N6BJAgbZC1FeeyzhMSoXgX
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #119 +/- ##
==========================================
- Coverage 95.15% 95.09% -0.06%
==========================================
Files 6 6
Lines 165 163 -2
==========================================
- Hits 157 155 -2
Misses 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
This pull request updates the project's PHP version requirements and CI/CD configuration to drop support for PHP 8.2 and add testing for PHP 8.4 and 8.5.
Key Changes
^8.2to^8.3incomposer.json^11 || ^12to^12 || ^13to support newer PHPUnit versionsImplementation Details
https://claude.ai/code/session_01N6BJAgbZC1FeeyzhMSoXgX