From 638032f4c0fa887aabcf494bf2504b54be470a34 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 4 Mar 2012 22:02:11 -0600 Subject: [PATCH] Fix bug in IoC singleton checking. Signed-off-by: Taylor Otwell --- laravel/ioc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }