File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 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/"
Original file line number Diff line number Diff line change 22
33namespace Micro \Component \DependencyInjection ;
44
5-
6- use Micro \Component \DependencyInjection \Autowire \AutowireHelperFactory ;
7- use Micro \Component \DependencyInjection \Autowire \AutowireHelperFactoryInterface ;
85use Micro \Component \DependencyInjection \Exception \ServiceNotRegisteredException ;
96use Micro \Component \DependencyInjection \Exception \ServiceRegistrationException ;
107use \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 }
You can’t perform that action at this time.
0 commit comments