Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[DI] dont fail on missing classes when resource tracking is disabled
  • Loading branch information
nicolas-grekas committed Nov 15, 2018
1 parent 654dc22 commit 236565c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -368,7 +368,7 @@ public function getReflectionClass($class, $throw = true)
$resource = new ClassExistenceResource($class, false);
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
} else {
$classReflector = new \ReflectionClass($class);
$classReflector = class_exists($class) ? new \ReflectionClass($class) : false;
}
} catch (\ReflectionException $e) {
if ($throw) {
Expand Down

0 comments on commit 236565c

Please sign in to comment.