Skip to content

CI: drop EOL PHP 8.1/8.2, require PHP 8.3+ - #59

Merged
Baspa merged 1 commit into
mainfrom
fix/ci-drop-php81-82
Jun 18, 2026
Merged

Baspa merged 1 commit into
mainfrom
fix/ci-drop-php81-82

Conversation

@Baspa

@Baspa Baspa commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Problem

CI is red on main and on every open PR. The jobs fail in ~10s at the dependency install step, before any test runs:

Your requirements could not be resolved to an installable set of packages.
  - brianium/paratest ... require php ~8.3.0 || ~8.4.0 -> your php version (8.1.34) does not satisfy that requirement.
  - pestphp/pest[v2.36.1, ..., 2.x-dev] require php ^8.2.0 -> your php version (8.1.34) does not satisfy that requirement.

The test toolchain (pestphp/pest ≥2.36.1 and its dependency brianium/paratest ≥7.4) has dropped PHP 8.1/8.2, so composer can no longer resolve dev dependencies on the 8.1 (and several 8.2) matrix legs. PHP 8.1 and 8.2 are also end-of-life.

Fix

  • composer.json: "php": "^8.1|^8.2|^8.3""^8.3|^8.4"
  • .github/workflows/run-tests.yml: matrix php: [8.1, 8.2, 8.3][8.3, 8.4]
  • .github/workflows/phpstan.yml: php-version: "8.1""8.3"

Locally: composer test → all green, phpstan analyse → no errors.

Note

This unblocks the four bug-fix PRs (#55#58). Merge this first; their checks then pass against the updated base.

The test toolchain (pestphp/pest >=2.36.1 and brianium/paratest >=7.4) no longer
supports PHP 8.1/8.2, so composer could not resolve dev dependencies on those
versions and every CI run failed at the install step. Bump the supported range
to ^8.3|^8.4 and update the run-tests matrix and PHPStan job accordingly.
@github-actions github-actions Bot added the fix label Jun 18, 2026
@Baspa
Baspa merged commit d1f060d into main Jun 18, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant