Skip to content

Commit 92f602e

Browse files
committed
Merge pull request laravel#1875 from effenberger/master
modified IoC::registred()
2 parents 23464ca + e1fde01 commit 92f602e

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)