Skip to content

chore: require PHP 8.4 and PHPUnit 13 - #95

Merged
rasmusbe merged 1 commit into
mainfrom
chore/phpunit-13
Nov 13, 2026
Merged

rasmusbe merged 1 commit into
mainfrom
chore/phpunit-13

Conversation

@rasmusbe

Copy link
Copy Markdown
Member

Updates PHPUnit from 10.5 to 13.4.6. PHPUnit 13 needs PHP 8.4, so this raises the package's minimum from 8.1 to 8.4 and narrows the CI matrix to 8.4. The personnummer package made the same change: personnummer/php#81

This is a breaking change for anyone on PHP 8.1 to 8.3: Composer will keep them on the previous release. It should go out as a new major version.

  • phpunit.xml.dist is migrated with phpunit --migrate-configuration (only the schema URL changed).
  • No test changes were needed.

Tested on PHP 8.4 in Docker: phpcs clean, 110 tests pass.

Replaces the Renovate PR for PHPUnit 13, which fails because it keeps the old PHP versions in the matrix.

@rasmusbe
rasmusbe merged commit da0b01d into main Nov 13, 2026
2 checks passed
@rasmusbe
rasmusbe deleted the chore/phpunit-13 branch November 13, 2026 00:21
@Johannestegner

Copy link
Copy Markdown
Member

This is a breaking change for anyone on PHP 8.1 to 8.3: Composer will keep them on the previous release. It should go out as a new major version.

This is totally okay, we only really support php versions that are not end of life, and 8.3 active support was ended 10 months ago.

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