Skip to content

[v3] #87 - Add PHP 8.6 support - #89

Merged
njoubert-cleverage merged 1 commit into
dev-v3from
87
Dec 4, 2026
Merged

njoubert-cleverage merged 1 commit into
dev-v3from
87

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #87: PHP 8.6 support for v3.0, same change as cleverage/process-bundle#511 for the core (cleverage/process-bundle#510).

  • CI (test.yml): the lowest job of the highest PHP version moves from 8.5 to 8.6, and the { php-version: '8.6', dependencies: highest, symfony-require: 7.4.* } and 8.* jobs are added. No pcov release builds on PHP 8.6 (1.0.12 fails, Fix build with PHP 8.6.0alpha2 krakjoe/pcov#134): on the 8.6 jobs it is built from the pinned commit 3795c08 in a dedicated step, to remove once a pcov release supports PHP 8.6 (coverage is required: a missing #[CoversClass] is only reported as risky when it is collected).
  • CI (quality.yml): PHPStan and Rector run on PHP 8.6; PHP-CS-Fixer stays on 8.5 (it refuses to run on PHP 8.6, CI: run on PHP 8.6 PHP-CS-Fixer/PHP-CS-Fixer#9954), and so does composer validate.
  • composer.json: symfony/polyfill-php86: ^1.34, so that the PHP 8.6 functions can be used on PHP 8.3 to 8.5, and symfony/dependency-injection: ^7.4.17|^8.1.5: with the lowest dependencies, 7.4.15 is installed, its ContainerBuilder calls spl_object_hash(), deprecated by PHP 8.6, which fails the new PHP 8.6 lowest job (failOnDeprecation); fixed in 7.4.17 and 8.1.5 (spl_object_id()).
  • .docker/php/Dockerfile: stays on php:8.5-fpm-alpine like the core, with a comment: pcov 1.0.12 does not build on PHP 8.6 and make quality runs PHP-CS-Fixer in the image (the php:8.6 images no longer ship mbstring: to install with oniguruma-dev when moving to 8.6).
  • CONTRIBUTING.md (PHP version), CHANGELOG.

Checked locally on PHP 8.6.0 (pcov built from the same commit, mbstring installed): highest and lowest dependencies, 83 tests OK, no risky test, no deprecation; PHPStan and Rector clean on PHP 8.6. make quality and make tests (PHP 8.5) pass.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None: PHP 8.3 stays the minimum version.

🤖 Generated with Claude Code

…P 8.6, require symfony/polyfill-php86 and symfony/dependency-injection 7.4.17 or 8.1.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner December 4, 2026 14:48
@njoubert-cleverage
njoubert-cleverage merged commit 4f2425d into dev-v3 Dec 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant