Skip to content

Releases: stellarwp/container-contract

1.1.1

05 Sep 20:09
b2c42c7
Compare
Choose a tag to compare

Changes

  • Tweak - Adjusted docblock for ContainerInterface ::get() so it does a better job with autocompletion in PHPStorm.

1.1.0

13 Feb 21:25
b1568be
Compare
Choose a tag to compare

Fixed

  • The return type for the bind() method for both di52/php-di is void, not mixed, so ContainerInterface::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.g Some\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.

1.0.4

20 Dec 21:30
Compare
Choose a tag to compare
  • Set the minimum PHP version to 7.0.0 in composer.json.

1.0.3

23 Sep 03:00
Compare
Choose a tag to compare

Changes

  • Allow $implementation in bind() and singleton() to be null.

1.0.2

23 Sep 02:42
Compare
Choose a tag to compare

Changes

  • Initial release
  • PSR-11 compatible type hinting