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)
9393 /**
9494 * {@inheritdoc}
9595 */
96- public function has ($ id ): bool
96+ public function has (string $ id ): bool
9797 {
9898 return $ this ->getPublicContainer ()->has ($ id ) || $ this ->getPrivateContainer ()->has ($ id );
9999 }
100100
101101 /**
102102 * {@inheritdoc}
103103 */
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
105105 {
106106 return $ this ->getPrivateContainer ()->has ($ id ) ? $ this ->getPrivateContainer ()->get ($ id ) : $ this ->getPublicContainer ()->get ($ id , $ invalidBehavior );
107107 }
You can’t perform that action at this time.
0 commit comments