1
0
Fork 0

Return empty result for definition inside stubs

pull/214/head
Felix Becker 2016-12-13 00:49:26 +01:00
parent 4cdd2eff9a
commit e3d9f1604c
1 changed files with 5 additions and 1 deletions

View File

@ -244,7 +244,11 @@ class TextDocument
return [];
}
$def = $this->definitionResolver->resolveReferenceNodeToDefinition($node);
if ($def === null || $def->symbolInformation === null) {
if (
$def === null
|| $def->symbolInformation === null
|| Uri\parse($def->symbolInformation->location->uri)['scheme'] === 'phpstubs'
) {
return [];
}
return $def->symbolInformation->location;