Yii DI version 1.5.0 was released. In this version:
- Add
$resettersparameter toStateResetterconstructor - Deprecate
StateResetter::setResetters(), use the constructor instead - Replace Psalm with PHPStan
- Explicitly import functions in "use" section
- Remove unused
ext-mbstringfromcomposer.jsonrequirements - Allow closures with integer keys as resetters in
StateResetter::setResetters() - Add a check that the
ContainerInterface::classdefinition is a container instance - Narrow
BuildingException::getSolution()andNotFoundException::getSolution()methods result type tostring - Add PHP 8.6 support
- Remove extra development files from the distribution archive
- Fix delegate lookup in
Container::has() - Fix previously retrieved
StateResetterinstances missing services created later - Fix
CompositeContainerto return the sameStateResetterinstance on eachget()call