chore/drop EOL PHP 7.0 and 7.1 from CI matrix#18
Merged
Conversation
PHP 7.0 and 7.1 are long past EOL (2018 and 2019 respectively) and testing them has been actively painful: the legacy Composer 2.2 they ship with via setup-php doesn't recognise newer composer config keys (see the now-removed `|| true` workaround on the audit.block-insecure step), and any phpunit bump past 7.x trips an unsatisfiable constraint on those rows — the immediate trigger here was Dependabot PR #14 (phpunit 7.3.1 -> 8.5.52) failing on PHP 7.0/7.1 because phpunit 8 requires PHP >= 7.2. Composer.json's `"php": "^7.0"` constraint is intentionally left as is; widening it touches semver and is a separate decision. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions CI workflow to stop testing end-of-life PHP versions (7.0/7.1), aligning the CI matrix with the currently exercised support window and unblocking dependency updates that require PHP ≥ 7.2.
Changes:
- Reduce the CI matrix to run tests on PHP 7.2–7.4 only.
- Remove the
|| truesoft-fail workaround forcomposer config audit.block-insecure falsenow that the dropped PHP versions are no longer in the matrix.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Narrow the CI matrix to PHP 7.2-7.4. Drops 7.0 and 7.1 (EOL since 2018 and 2019). Also drops the now-redundant Composer 2.2 workaround on the audit.block-insecure step.
The immediate trigger is Dependabot PR #14 (phpunit 7.3.1 -> 8.5.52), which fails CI on the 7.0 and 7.1 rows because phpunit 8 requires PHP >= 7.2. Trimming the matrix lets that PR (and any future bumps with similar floors) proceed against the PHP versions we actually still support.
Notable changes
.github/workflows/ci.yml:matrix.phpfrom['7.0', '7.1', '7.2', '7.3', '7.4']to['7.2', '7.3', '7.4'].|| trueworkaround and explanatory comment on thecomposer config audit.block-insecure falsestep. PHP 7.2+ ship with Composer >= 2.7 via setup-php, which understands the key, so the soft-fail is no longer needed.composer.jsonstill says"php": "^7.0". Widening that constraint changes semver and is a separate call — leaving it alone keeps the package install metadata honest about what packagist still claims is supported, while CI focuses on what we actually exercise.QA