Revert injector type hint to Injector

This commit is contained in:
Damian Mooyman 2017-05-22 15:40:57 +12:00 committed by Sam Minnée
parent c75f759b18
commit 29f450b1e1

View File

@ -237,7 +237,7 @@ class Injector implements ContainerInterface
* If a user wants to use the injector as a static reference * If a user wants to use the injector as a static reference
* *
* @param array $config * @param array $config
* @return ContainerInterface * @return Injector
*/ */
public static function inst($config = null) public static function inst($config = null)
{ {
@ -250,10 +250,10 @@ class Injector implements ContainerInterface
/** /**
* Sets the default global injector instance. * Sets the default global injector instance.
* *
* @param ContainerInterface $instance * @param Injector $instance
* @return Injector Reference to new active Injector instance * @return Injector Reference to new active Injector instance
*/ */
public static function set_inst(ContainerInterface $instance) public static function set_inst(Injector $instance)
{ {
return self::$instance = $instance; return self::$instance = $instance;
} }