Skip to content

Upgrading laminas/laminas-servicemanager 2 to 3

Breaking2.7.11 → 3.24.0Breaking3Platform10New2Changed14Fixed18Other16

BreakingUpgrade verdict

3 breaking changes and 10 platform requirement changes.

  • This release undoes the earlier change that allowed the newer version 2 of the psr/container package, so the package again requires version 1.
  • Version 3.5.0 accidentally included changes that broke existing code, so this release undoes all of them and restores the previous behavior.
  • The reference to ContainerInterface that was changed in 3.5.0 is restored to its previous form.
  • This version no longer runs on PHP 8.1, but it now works with PHP 8.5.
Top 5 of 13 that need code or config changes

PHP requirement changed in 3.24.0: ^5.5 || ^7.0 → ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0.

Adds laminas/laminas-stdlib ^3.19, psr/container ^1.0.

Drops container-interop/container-interop, laminas/laminas-zendframework-bridge.

Breaking3
Reverts support for psr/container v2, restoring the psr/container v1 requirement.
psr/container
Reverts release 3.5.0 entirely because it contained backwards-incompatible changes that should not have shipped in a minor version.
Reverts the 3.5.0 change that altered the ContainerInterface reference in a minor release.
ContainerInterface
Platform10
Removes support for PHP 8.1 and adds support for PHP 8.5.
Adds PHP 8.4 support to the 3.x series.
Adds support for PHP 8.3.
Removes support for PHP versions below 8.1 due to the PHPUnit 10 upgrade.
Adds support for PHP 8.2 and drops support for PHP 7.4.
Adds PHP 8.1 support.
Adds PHP 8.0 support.
Backports changes from the upcoming 4.0 release and re-adds PHP 7.3 support.
Removes PHP support prior to 7.4.0.
Drops support for PHP versions prior to 7.1.