diff --git a/composer.json b/composer.json index ef3fc7e..5178b06 100755 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Dependency injection service container", "type": "library", "license": "MIT", - "version": "1.0", + "version": "1.1", "autoload": { "psr-4": { "Micro\\Component\\DependencyInjection\\": "src/" diff --git a/src/Container.php b/src/Container.php index 58b81be..5d12fb7 100755 --- a/src/Container.php +++ b/src/Container.php @@ -2,9 +2,6 @@ namespace Micro\Component\DependencyInjection; - -use Micro\Component\DependencyInjection\Autowire\AutowireHelperFactory; -use Micro\Component\DependencyInjection\Autowire\AutowireHelperFactoryInterface; use Micro\Component\DependencyInjection\Exception\ServiceNotRegisteredException; use Micro\Component\DependencyInjection\Exception\ServiceRegistrationException; use \Closure; @@ -35,9 +32,13 @@ public function __construct( } /** - * {@inheritDoc} + * @template T + * + * @param class-string $id + * + * @return T */ - public function get(string $id) + public function get(string $id): object { return $this->lookup($id); }