1
0
Fork 0

Update DefinitionResolver.php

from issue
https://github.com/felixfbecker/php-language-server/issues/326
pull/333/head
Sensirex 2017-03-16 14:21:32 +07:00 committed by GitHub
parent 546660f957
commit c79d3d2cdd
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ class DefinitionResolver
} }
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name); $fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name);
$def = $this->index->getDefinition($fqn, true); $def = $this->index->getDefinition($fqn, true);
if ($def !== null) { if ($def !== null && $def->type!= null) {
return $def->type; return $def->type;
} }
} }