Skip to content

Commit

Permalink
#135 completely skip autoloading for already loaded classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jul 22, 2017
1 parent ee6a30b commit 2258a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Doctrine/Common/Annotations/AnnotationRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ static public function registerLoader($callable)
*/
static public function loadAnnotationClass($class)
{
if (isset(self::$successfullyLoaded[$class])) {
if (\class_exists($class, false)) {
return true;
}

if (isset(self::$failedToAutoload[$class])) {
return false;
}
Expand Down

0 comments on commit 2258a55

Please sign in to comment.