Skip to content

1.1.0

Choose a tag to compare

@borkweb borkweb released this 13 Feb 21:25
· 4 commits to main since this release
b1568be

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.