Repository navigation
[TASK] allow and test PHP 8.6 - #23
Merged
Merged
Conversation
- allow PHP ~8.6.0 and add 8.6 to the CI matrix - use webdevops/php-dev directly as CI image (pluswerk/php-dev has no PHP 8.6 image and only adds tools the CI does not need) - rector.php: remove cacheClass(), it was removed in rector 2.8 (CI installs the latest rector, FileCacheStorage is the default anyway)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
=========================================
Coverage 99.83% 99.83%
Complexity 215 215
=========================================
Files 21 21
Lines 614 614
=========================================
Hits 613 613
Misses 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Kanti
enabled auto-merge (squash)
November 26, 2026 20:32
Kanti
disabled auto-merge
November 26, 2026 20:32
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.
Description and Background
Adds support for PHP 8.6, following the same pattern as the PHP 8.5 PR (#22):
composer.json: allow PHP~8.6.0.8.6to the test matrix.webdevops/php-dev:<php>directly instead ofpluswerk/php-dev:nginx-<php>.pluswerk/php-devhas no PHP 8.6 image, and it only adds development tools that CI doesn't use on top of the webdevops images.webdevops/php-devhas composer, git and xdebug for 8.2–8.6.rector.php: removecacheClass(FileCacheStorage::class). Rector 2.8 removed that method, and since there is no lock file, CI always installs the latest rector.FileCacheStorageis rector's default anyway, so this changes nothing.Motivation and Context
PHP 8.6.0 has been released. phpsu (phpsu/phpsu#203) can only be installed and tested on PHP 8.6 once there is a
phpsu/shellcommandbuilderrelease that allows~8.6.0.Right now composer falls back to 2.0.0 on PHP 8.6, because that release still allows
php >=7.2. 2.0.0 has implicitly nullable parameters (ShellBuilder::redirectDescriptor()), which PHP 8.6 reports as deprecated. 2.2.0 already declares them explicitly, so no code changes are needed here.After merging, a release (e.g. 2.3.0) is needed for phpsu to pick it up.
How Has This Been Tested
composer test: all 140 tests pass.assert()has to be enabled (zend.assertions=1), because two tests expect anAssertionError. That is already the case in the CI images.grumphp: phpcs, phpstan, rector, fractor, the linters,composer_normalizeand the composer audit all pass.webdevops/php-dev, all jobs for PHP 8.2–8.5 are green there.Checklist
documentationaccordingly. (nothing to update, the README doesn't list PHP versions)teststo cover my changes. (no code changes)Generated by Claude Code