Skip to content

Conversation

@veewee
Copy link
Contributor

@veewee veewee commented Oct 21, 2025

This commit upgrades the project to support PHP 8.5 while maintaining compatibility with PHP 8.3 and 8.4.

Changes made:

  • Remove PHP 8.2 support, add PHP 8.5 support in composer.json
  • Update azjezz/psl to support both ^3.1 and ^4.0 ranges for forward compatibility
  • Add phpunit/phpunit ~12.4, vimeo/psalm ~6.13, and php-cs-fixer/shim ~3.88
  • Update phpro/grumphp-shim to ^2.17
  • Remove phive.xml, .phive and tools folder (switched to vendor/bin)
  • Update GitHub workflow to test PHP 8.3, 8.4, 8.5 (with continue-on-error for 8.5)
  • Update workflow to use vendor/bin executables instead of .phar files
  • Upgrade test suite to PHPUnit 12 using @dataProvider annotations to DataProvider attributes
  • Replace @test annotations with Test attributes
  • Update phpunit.xml to use vendor schema and add new configuration options
  • Update psalm.xml with findUnusedCode="false" and ensureOverrideAttribute="false"
  • Fix missing return type in closure for Psalm compatibility

All tests passing (100 tests, 204 assertions).

Changed by GitHub Copilot CLI agent.

Q A
Type bug/feature/improvement
BC Break yes/no
Fixed issues

Summary

This commit upgrades the project to support PHP 8.5 while maintaining compatibility with PHP 8.3 and 8.4.

Changes made:
- Remove PHP 8.2 support, add PHP 8.5 support in composer.json
- Update `azjezz/psl` to support both ^3.1 and ^4.0 ranges for forward compatibility
- Add `phpunit/phpunit` ~12.4, `vimeo/psalm` ~6.13, and `php-cs-fixer/shim` ~3.88
- Update `phpro/grumphp-shim` to ^2.17
- Remove `phive.xml`, `.phive` and `tools` folder (switched to vendor/bin)
- Update GitHub workflow to test PHP 8.3, 8.4, 8.5 (with continue-on-error for 8.5)
- Update workflow to use vendor/bin executables instead of .phar files
- Upgrade test suite to PHPUnit 12 using `@dataProvider` annotations to DataProvider attributes
- Replace `@test` annotations with Test attributes
- Update phpunit.xml to use vendor schema and add new configuration options
- Update psalm.xml with `findUnusedCode="false"` and `ensureOverrideAttribute="false"`
- Fix missing return type in closure for Psalm compatibility

All tests passing (100 tests, 204 assertions).

Changed by GitHub Copilot CLI agent.
@veewee veewee merged commit 5b1fa94 into phpro:v2.x Oct 21, 2025
6 checks passed
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