Skip to content

Require PHP 8.3 and update dev dependencies - #15

Merged
ellisgl merged 1 commit into
mainfrom
php83
Nov 25, 2026
Merged

ellisgl merged 1 commit into
mainfrom
php83

Conversation

@ellisgl

@ellisgl ellisgl commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Raises the minimum PHP version to 8.3 and updates the dev tools to their latest versions that support it.

Before After
PHP >=8.1 >=8.3
CI matrix 8.1–8.5 8.3–8.5
phpunit/phpunit 9.6 12.5 (13 needs PHP 8.4)
squizlabs/php_codesniffer 3.13 4.0
phpmd/phpmd 2.13 3.0
phpstan/phpstan 2.x 2.3.7

PHPUnit 12 migration

  • @dataProvider annotations became #[DataProvider] attributes (3 tests).
  • GLPDO2MySQLTest overrode the test constructor to connect to MySQL. PHPUnit 12 changed that constructor, so the connection now happens in setUp(), which already ran before each test.
  • phpunit.xml uses the current schema. It now also fails the run on warnings and deprecations, so PHP deprecations can't slip in unnoticed.

README and CHANGELOG ("Unreleased") are updated. All 96 tests pass against MySQL 8.4 on PHP 8.5, along with PHPStan level 8 and PSR-12.

🤖 Generated with Claude Code

- PHP >=8.1 -> >=8.3; CI matrix is now 8.3-8.5
- PHPUnit 9 -> 12: @dataProvider annotations become #[DataProvider]
  attributes, the MySQL test connects in setUp() instead of overriding
  the constructor, and phpunit.xml uses the current schema (now also
  failing on warnings and deprecations)
- PHP_CodeSniffer 3 -> 4, PHPMD 2 -> 3
- README and CHANGELOG updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ellisgl
ellisgl merged commit cc2a5f8 into main Nov 25, 2026
5 checks passed
@ellisgl
ellisgl deleted the php83 branch November 25, 2026 16:52
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