Releases: stellarwp/container-contract
Releases · stellarwp/container-contract
1.1.1
1.1.0
Fixed
- The return type for the
bind()
method for both di52/php-di isvoid
, notmixed
, soContainerInterface::bind()
now properly matches.
Added
- Phpstan/Psalm Generics for for
get()
methods, most IDE's will auto-complete class instances based on this if you pass in a class-string, e.gSome\Namespace\Some\ClassName::class
and if your project uses static analysis, it will catch errors. - Union
class-string
params for relevant methods. - The ContainerInterface now implements
declare( strict_types=1 );
as the composer.json says this project is>=7.0.0
. @method
DocBlocks for missing methods for the di52 example code (this will help some with IDE autocompletion).- Git ignore PhpStorm's
.idea/
folder.