Skip to content

Update to PHP 8.2-8.5 and modernize dependencies#16

Merged
kimpepper merged 4 commits intomainfrom
update-php-and-dependencies
Apr 20, 2026
Merged

Update to PHP 8.2-8.5 and modernize dependencies#16
kimpepper merged 4 commits intomainfrom
update-php-and-dependencies

Conversation

@kimpepper
Copy link
Copy Markdown
Member

@kimpepper kimpepper commented Apr 20, 2026

Updates to PHP 8.2-8.5 and modernizes dependencies.

Dependencies

  • symfony/serializer ^6.4 || ^7.4
  • phpstan/phpstan ^2.1
  • phpunit/phpunit ^11.5

Changes

  • CI: Test PHP 8.2 + 8.5, use stable Docker tags, skip PHPCS on 8.5
  • Symfony 7.x: Add getSupportedTypes(), update normalizer method signatures
  • PHPUnit 11.x: Migrate annotations to #[CoversClass] attributes
  • PHPStan 2.x: Remove deprecated config, fix return types, clear baseline
  • Code fixes: Correct nullable return types on getters/setters

Notes

  • PHPCS skipped on PHP 8.5 due to drupal/coder deprecation bug (null array offset in ScopeIndentSniff.php)
  • Fix requires previousnext/coding-standard update to support drupal/coder ^9.0

- 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
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

Test Results 8.5 --prefer-lowest

4 tests   4 ✅  0s ⏱️
3 suites  0 💤
1 files    0 ❌

Results for commit 43fada0.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

Test Results 8.2

4 tests   4 ✅  0s ⏱️
3 suites  0 💤
1 files    0 ❌

Results for commit 43fada0.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

Test Results 8.2 --prefer-lowest

4 tests   4 ✅  0s ⏱️
3 suites  0 💤
1 files    0 ❌

Results for commit 43fada0.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

Test Results 8.5

4 tests   4 ✅  0s ⏱️
3 suites  0 💤
1 files    0 ❌

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)
@kimpepper kimpepper merged commit 0123745 into main Apr 20, 2026
8 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