Skip to content

Support PHP 8.6 - #14

Merged
ruudk merged 3 commits into
mainfrom
ruudk/readfy-php-8-6-58f0e7
Nov 26, 2026
Merged

ruudk merged 3 commits into
mainfrom
ruudk/readfy-php-8-6-58f0e7

Conversation

@ruudk

@ruudk ruudk commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Makes the library installable and tested on PHP 8.6.

Changes

  • Bump dev packages. Several locked dev packages (ergebnis/*, nette/utils, symplify/coding-standard) capped their PHP constraint at 8.5, so composer install failed on PHP 8.6. composer.json already allows 8.6 through ^8.5, so only the lock file changes.
  • Remove redundant null checks in joinFirstPair(). PHPStan was bumped from 2.1 to 2.3, and the new version reports that $first can no longer be null once the first line has been consumed. The checks and the dead else branch are removed. Behaviour does not change.
  • Add PHP 8.6 to the CI matrix, next to 8.5.
  • Remove broken Lefthook hooks. ensure-sync and twig-cs-fixer were copied from another project. bin/graphql-client-code-generator and twig-cs-fixer do not exist here, so ensure-sync failed every commit that touched a PHP file.

Verification

Tests, PHPStan, PHP CS Fixer, composer-dependency-analyser and the README sync all pass locally on both PHP 8.5.13 and 8.6.0, using the new lock file.

PHP CS Fixer 3.95 warns that it officially supports syntax only up to PHP 8.5. That is harmless here, because CI also runs on 8.5.

Several locked dev packages (ergebnis/*, nette/utils, symplify/coding-standard)
capped their PHP constraint at 8.5, so composer install failed on PHP 8.6.

The PHPStan bump to 2.3 detects that $first in joinFirstPair() can no longer
be null once the first line was consumed, so the redundant null checks are
removed.
The ensure-sync and twig-cs-fixer hooks were copied from another project.
bin/graphql-client-code-generator and twig-cs-fixer do not exist here, so
ensure-sync failed every commit that touched a PHP file.
@ruudk
ruudk merged commit f9f9e2e into main Nov 26, 2026
2 checks passed
@ruudk
ruudk deleted the ruudk/readfy-php-8-6-58f0e7 branch November 26, 2026 09:13
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