Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
Do not allow NULL class reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
dantleech committed Jan 30, 2021
1 parent 4fda17e commit d89c65d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ private function findNodeForPhpdocAtPosition(SourceFileNode $sourceNodeFile, int

private function isAnAnnotation(Suggestion $suggestion): bool
{
if (null === $suggestion->classImport()) {
return false;
}

try {
$reflectionClass = $this->reflector->reflectClass($suggestion->classImport());
$docblock = $reflectionClass->docblock();
Expand Down

0 comments on commit d89c65d

Please sign in to comment.