Skip to content

Drop PHP 7.1 support; tighten phpunit constraint (closes Dependabot alert)#608

Open
JayBizzle wants to merge 1 commit into
masterfrom
security/phpunit-bump
Open

Drop PHP 7.1 support; tighten phpunit constraint (closes Dependabot alert)#608
JayBizzle wants to merge 1 commit into
masterfrom
security/phpunit-bump

Conversation

@JayBizzle
Copy link
Copy Markdown
Owner

Summary

Closes the open Dependabot alert on phpunit/phpunit (GHSA-vvj3-c3rp-c85p — unsafe deserialization in PHPT code coverage handling, fixed in 8.5.52).

The previous require-dev constraint ^4.8|^5.5|^6.5|^7.5|^8.5.52|^9.4 still let composer resolve a vulnerable phpunit on PHP 7.1, because 8.5.52 requires PHP 7.2+. To actually close the alert we need to stop testing on 7.1 — and to be honest about that, the runtime constraint should move too.

Changes

  • composer.json: phpunit/phpunit narrowed to ^8.5.52|^9.4.
  • composer.json: runtime php bumped from >=7.1.0 to >=7.2.0. PHP 7.1 has been EOL since December 2019.
  • .github/workflows/test.yml: PHP 7.1 dropped from the matrix.

Release versioning

I'd tag the resulting release as v1.4.0 (minor bump from current v1.3.11). The library's public API and src/ are untouched — no 7.2+ syntax in use — so this isn't strictly a breaking change for code. The composer constraint bump is the policy change being signalled; existing PHP 7.1 installs simply won't pull v1.4.0 from packagist.

Test plan

  • vendor/bin/phpunit green locally on PHP 8.4 (19 tests, 2,274,786 assertions)
  • composer update --dry-run resolves phpunit/phpunit to 9.6.34 (above the 9.6.33 patched cutoff)
  • CI matrix passes on PHP 7.2–8.4
  • Dependabot alert auto-closes after merge

🤖 Generated with Claude Code

Closes the open Dependabot alert on phpunit/phpunit
(GHSA-vvj3-c3rp-c85p — unsafe deserialization in PHPT code coverage
handling, fixed in 8.5.52). The previous require-dev constraint
`^4.8|^5.5|^6.5|^7.5|^8.5.52|^9.4` still let composer resolve a
vulnerable phpunit on PHP 7.1, because 8.5.52 needs PHP 7.2+.

Changes:
- composer.json: phpunit/phpunit narrowed to `^8.5.52|^9.4`.
- composer.json: runtime requirement bumped from `>=7.1.0` to `>=7.2.0`
  to reflect that we no longer test or attest PHP 7.1. PHP 7.1 has been
  EOL since December 2019.
- test.yml: PHP 7.1 dropped from the matrix.

src/ does not use any PHP 7.2+ syntax, so the library itself is
unaffected. Existing 7.1 installs simply won't pull the new release.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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