Skip to content

Composer: enabled PHP 8.6 - #107

Merged
janpecha merged 2 commits into
czproject:masterfrom
tomsommer:php-8.6
Nov 25, 2026
Merged

janpecha merged 2 commits into
czproject:masterfrom
tomsommer:php-8.6

Conversation

@tomsommer

Copy link
Copy Markdown
Contributor

PHP 8.6 was released today. This widens the PHP constraint to 8.0 - 8.6 and adds 8.6 to the test and PHPStan matrices in build.yml, the same change as ad89689 did for 8.5.

A scan of src/ against the PHP 8.6 deprecations list found nothing that needs changing.

PHPStan 2.3 reports the $pipes array from proc_open() as array<resource>
instead of array<0|1|2, resource>, so the baseline entry no longer
matched and the job failed with an unmatched ignore pattern plus the
error itself. Match both forms.
@tomsommer

Copy link
Copy Markdown
Contributor Author

Both failing checks are unrelated to the 8.6 change:

  • PHPStan: PHPStan 2.3 reports the proc_open() pipes as array<resource>, so the baseline entry no longer matched. It fails the same way with the PHP range reverted to 8.0 - 8.5. Fixed in d4c6828, which matches both forms.
  • Code checker: the build.yml generator only knows PHP up to 8.5, so it rejects any build.yml that lists 8.6. Fix in JanpechaActions: added PHP 8.6 janpecha/code-checker#1; this job turns green once that is in a release.

@janpecha
janpecha merged commit d4c6828 into czproject:master Nov 25, 2026
16 checks passed
@janpecha

Copy link
Copy Markdown
Member

Thanks! Sorry for the delay, I was very busy. I released version 4.7.0.

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.

2 participants