diff --git a/laravel/ioc.php b/laravel/ioc.php index de8e2939..b02280f9 100644 --- a/laravel/ioc.php +++ b/laravel/ioc.php @@ -130,7 +130,7 @@ public static function resolve($name, $parameters = array()) // If the resolver is registering as a singleton resolver, we will cache // the instance of the object in the container so we can resolve it next // time without having to instantiate a brand new instance. - if (isset(static::$registry[$name]['singleton'])) + if (static::$registry[$name]['singleton']) { return static::$singletons[$name] = $object; }