Skip to content

Upgrade to PHP 8.2, replace Psalm with PHPStan, bump tooling#16

Merged
loevgaard merged 5 commits into2.xfrom
feature/upgrade-php82-phpstan
Apr 13, 2026
Merged

Upgrade to PHP 8.2, replace Psalm with PHPStan, bump tooling#16
loevgaard merged 5 commits into2.xfrom
feature/upgrade-php82-phpstan

Conversation

@loevgaard
Copy link
Copy Markdown
Member

Summary

  • Upgrade PHP requirement from >=7.4 to >=8.2
  • Replace Psalm with PHPStan (max level, with baseline for SOAP mixed types)
  • Slim require-dev to setono/code-quality-pack ^3.3 (bundles PHPUnit 11, Infection, PHPStan, ECS, Rector)
  • Update ECS config to new ECSConfig format (sylius-labs/coding-standard ^4.5)
  • Update phpunit.xml.dist for PHPUnit 11
  • Update CI matrix to PHP 8.2/8.3/8.4, update GitHub Actions (checkout v6, composer-install v4, codecov-action v5)
  • Add Roave/BackwardCompatibilityCheck workflow for BC break detection on PRs
  • Fix PHP 8.4 implicitly nullable parameter deprecations in tests

Test plan

  • CI passes on all PHP versions (8.2, 8.3, 8.4) with lowest and highest deps
  • PHPStan passes with baseline
  • ECS code style check passes
  • PHPUnit tests pass
  • Backwards compatibility check runs on this PR

- Require PHP >=8.2, guzzlehttp/psr7 ^2.7
- Replace psalm with PHPStan (max level, baseline for SOAP mixed types)
- Slim require-dev to setono/code-quality-pack ^3.2 (bundles PHPUnit 11, Infection, PHPStan, ECS)
- Update ECS config to new ECSConfig format
- Update phpunit.xml.dist for PHPUnit 11
- Update CI matrix to PHP 8.2/8.3/8.4 on 3.x branch
- Add CLAUDE.md
- Bump setono/code-quality-pack ^3.2 → ^3.3 (adds phpstan/extension-installer)
- Allow phpstan/extension-installer plugin in composer config
- Update GitHub Actions: checkout v4→v6, composer-install v3→v4, codecov bash→codecov-action v5
- Fix implicitly nullable parameters in tests (PHP 8.4 deprecation)
- Regenerate PHPStan baseline with auto-loaded extensions
Adds Roave/BackwardCompatibilityCheck as a GitHub Actions workflow
that runs on pull requests to detect BC breaks.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (2.x@8b2ebb0). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff           @@
##             2.x      #16   +/-   ##
======================================
  Coverage       ?   75.71%           
  Complexity     ?       79           
======================================
  Files          ?       10           
  Lines          ?      210           
  Branches       ?        0           
======================================
  Hits           ?      159           
  Misses         ?       51           
  Partials       ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@loevgaard loevgaard merged commit fdf589d into 2.x Apr 13, 2026
24 checks passed
@loevgaard loevgaard deleted the feature/upgrade-php82-phpstan branch April 13, 2026 09:17
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