Skip to content

Commit

Permalink
[DI] Dont cache classes with missing parents
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Nov 7, 2019
1 parent 9151698 commit 38726d8
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -361,7 +361,7 @@ public function getReflectionClass($class, $throw = true)
return null;
}

$resource = null;
$resource = $classReflector = null;

try {
if (isset($this->classReflectors[$class])) {
Expand All @@ -376,7 +376,6 @@ public function getReflectionClass($class, $throw = true)
if ($throw) {
throw $e;
}
$classReflector = false;
}

if ($this->trackResources) {
Expand Down

0 comments on commit 38726d8

Please sign in to comment.