1
0
Fork 0

Handle case where FQN could not be resolved

pull/165/head
Felix Becker 2016-11-30 11:17:38 +01:00
parent 471d4703c5
commit cc8365d425
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,8 @@ class CompletionProvider
} }
} }
} else { } else {
$prefixes = [$this->definitionResolver->resolveReferenceNodeToFqn($node)]; $fqn = $this->definitionResolver->resolveReferenceNodeToFqn($node);
$prefixes = $fqn !== null ? [$fqn] : [];
} }
foreach ($this->project->getDefinitions() as $fqn => $def) { foreach ($this->project->getDefinitions() as $fqn => $def) {