File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,15 +93,15 @@ public function set(string $id, $service)
93
93
/**
94
94
* {@inheritdoc}
95
95
*/
96
- public function has ($ id ): bool
96
+ public function has (string $ id ): bool
97
97
{
98
98
return $ this ->getPublicContainer ()->has ($ id ) || $ this ->getPrivateContainer ()->has ($ id );
99
99
}
100
100
101
101
/**
102
102
* {@inheritdoc}
103
103
*/
104
- public function get ($ id , int $ invalidBehavior = /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1 ): ?object
104
+ public function get (string $ id , int $ invalidBehavior = /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1 ): ?object
105
105
{
106
106
return $ this ->getPrivateContainer ()->has ($ id ) ? $ this ->getPrivateContainer ()->get ($ id ) : $ this ->getPublicContainer ()->get ($ id , $ invalidBehavior );
107
107
}
You can’t perform that action at this time.
0 commit comments