Swap v4.5.0 Release Notes

Release Date: 2026-03-09 // 3 months ago
  • What's Changed

    💥 Breaking Changes

    • Minimum PHP version raised to 8.2 (was 7.4/8.0)
    • Minimum PHPUnit version raised to 11.0 (was 9.x/10.x)

    👌 Improvements

    • Added suggest section to composer.json for PSR-18 client and PSR-17 factory implementations, guiding users toward compatible HTTP dependencies
    • 👌 Improved discovery test — Now verifies discovery works end-to-end by creating a service via Factory

    Infrastructure & Tooling

    • 👷 Modernized CI pipeline — Replaced Travis CI with GitHub Actions; test matrix covers PHP 8.2, 8.3, 8.4, and 8.5
    • Added Psalm static analysis (level 1) with dedicated CI workflow and baseline
    • Added backward compatibility check workflow
    • Migrated all tests to PHPUnit 11 attributes — Replaced @test and @dataProvider annotations
    • Added composer scriptstest, psalm, cs:fix, cs:check
    • Removed legacy CI configs.scrutinizer.yml, .styleci.yml, .travis.yml
    • ⚡️ Updated README badges — Travis badge replaced with GitHub Actions Tests and Psalm badges

    Full Changelog : 4.4.0...4.5.0


Previous changes from v4.3.0

    • 👍 PHP 8 and PHPUnit 9 support