feat: Upgrade to PHP 8.5, remove PHP 8.2 support#44
Merged
veewee merged 1 commit intophpro:v2.xfrom Oct 21, 2025
Merged
Conversation
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.
38f482f to
9ed5fa9
Compare
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.
This commit upgrades the project to support PHP 8.5 while maintaining compatibility with PHP 8.3 and 8.4.
Changes made:
azjezz/pslto support both ^3.1 and ^4.0 ranges for forward compatibilityphpunit/phpunit~12.4,vimeo/psalm~6.13, andphp-cs-fixer/shim~3.88phpro/grumphp-shimto ^2.17phive.xml,.phiveandtoolsfolder (switched to vendor/bin)@dataProviderannotations to DataProvider attributes@testannotations with Test attributesfindUnusedCode="false"andensureOverrideAttribute="false"All tests passing (100 tests, 204 assertions).
Changed by GitHub Copilot CLI agent.
Summary