Releases: php-fig/container
Releases · php-fig/container
2.0.2
1.1.2
2.0.1
2.0.0
Changed
- This release adds the
bool
return typehint toPsr\Container\ContainerInterface::has()
, in accordance with the PSR-11 type additions errata.
1.1.1
Removed
- This release removes the extension of
Throwable
byPsr\Container\ContainerInterface
, as it leads to inheritance issues when child classes implement theThrowable
interface in addition toContainerInterface
under PHP versions prior to 7.4.
1.1.0
Changed
-
This release modifies
Psr\Container\ContainerExceptionInterface
to extend theThrowable
interface, ensuring that any implementation can actually be thrown as an exception type (the original intention of the specification). -
This release adds the
string
typehint to the$id
argument of each of thePsr\Container\ContainerInterface::get()
andPsr\Container\ContainerInterface::has()
methods. These were previously documented in the annotations and specification, and are added to the interfaces as part of the PSR-11 type additions errata.
Removed
- This release removes support for PHP versions prior to 7.2.0.
1.0.0
Initial stable release, following acceptance of PSR-11.