Commit 638032f4 authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in IoC singleton checking.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent e36dba4f
......@@ -130,7 +130,7 @@ class IoC {
// 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment