Skip to content

Commit f00f3d9

Browse files
authored
Merge pull request #4 from Micro-PHP/release-1.1
v1.1 - stabilization
2 parents 2b6d7b6 + 50aeca3 commit f00f3d9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Dependency injection service container",
44
"type": "library",
55
"license": "MIT",
6-
"version": "1.0",
6+
"version": "1.1",
77
"autoload": {
88
"psr-4": {
99
"Micro\\Component\\DependencyInjection\\": "src/"

src/Container.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace Micro\Component\DependencyInjection;
44

5-
6-
use Micro\Component\DependencyInjection\Autowire\AutowireHelperFactory;
7-
use Micro\Component\DependencyInjection\Autowire\AutowireHelperFactoryInterface;
85
use Micro\Component\DependencyInjection\Exception\ServiceNotRegisteredException;
96
use Micro\Component\DependencyInjection\Exception\ServiceRegistrationException;
107
use \Closure;
@@ -35,9 +32,13 @@ public function __construct(
3532
}
3633

3734
/**
38-
* {@inheritDoc}
35+
* @template T
36+
*
37+
* @param class-string<T> $id
38+
*
39+
* @return T
3940
*/
40-
public function get(string $id)
41+
public function get(string $id): object
4142
{
4243
return $this->lookup($id);
4344
}

0 commit comments

Comments
 (0)