Skip to content

Commit e1fde01

Browse files
author
Max
committed
IoC::registered check fixed
Returns true if the instance was registered with IoC::instance
1 parent 23464ca commit e1fde01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

laravel/ioc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function unregister($name)
5252
*/
5353
public static function registered($name)
5454
{
55-
return array_key_exists($name, static::$registry);
55+
return array_key_exists($name, static::$registry) || array_key_exists($name, static::$singletons);
5656
}
5757

5858
/**
@@ -246,4 +246,4 @@ protected static function resolveNonClass($parameter)
246246
}
247247
}
248248

249-
}
249+
}

0 commit comments

Comments
 (0)