Update to PHP 8.2-8.5 and modernize dependencies#16
Merged
Conversation
- Update CI to test PHP 8.2 (min) and 8.5 (max) supported versions - Switch Docker images from edge to stable tags - Upgrade symfony/serializer to ^6.4 || ^7.4 - Upgrade phpstan/phpstan to ^2.1 - Upgrade phpunit/phpunit to ^11.5 - Migrate PHPUnit annotations to PHP 8 attributes - Add getSupportedTypes() for Symfony 7.x normalizer compatibility - Update normalizer method signatures for Symfony 7.x - Update phpunit.xml to PHPUnit 11.x schema format - Regenerate PHPStan baseline for 2.x
Test Results 8.5 --prefer-lowest4 tests 4 ✅ 0s ⏱️ Results for commit 43fada0. ♻️ This comment has been updated with latest results. |
Test Results 8.24 tests 4 ✅ 0s ⏱️ Results for commit 43fada0. ♻️ This comment has been updated with latest results. |
Test Results 8.2 --prefer-lowest4 tests 4 ✅ 0s ⏱️ Results for commit 43fada0. ♻️ This comment has been updated with latest results. |
Test Results 8.54 tests 4 ✅ 0s ⏱️ Results for commit 43fada0. ♻️ This comment has been updated with latest results. |
- Upgrade previousnext/coding-standard from ^0.1.3 to ^1.1 - Skip PHPCS on PHP 8.5 due to drupal/coder deprecation bug - Fix static closure violations from updated coding standard
- Update dev dependency minimum versions to latest - Add proper PHPDoc type hints for array parameters - Regenerate PHPStan baseline
- Area::getParentAac(): Change return type from ?string to string - Forecast::getIssueTime(): Change return type from ?\DateTimeImmutable to \DateTimeImmutable - Observation::setTemperature(): Change return type from ?Observation to self - Remove redundant assertNotNull() calls in tests - Clear phpstan-baseline.neon (no remaining ignored errors)
This was referenced Apr 21, 2026
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.
Updates to PHP 8.2-8.5 and modernizes dependencies.
Dependencies
symfony/serializer^6.4 || ^7.4phpstan/phpstan^2.1phpunit/phpunit^11.5Changes
getSupportedTypes(), update normalizer method signatures#[CoversClass]attributesNotes
drupal/coderdeprecation bug (null array offset inScopeIndentSniff.php)previousnext/coding-standardupdate to supportdrupal/coder ^9.0