Fix indentation
parent
3cb0c03c81
commit
01e72430d0
|
@ -158,7 +158,7 @@ class CompletionProvider
|
||||||
!(
|
!(
|
||||||
$node->parent instanceof Node\Expression\ScopedPropertyAccessExpression &&
|
$node->parent instanceof Node\Expression\ScopedPropertyAccessExpression &&
|
||||||
$node->parent->memberName === $node)
|
$node->parent->memberName === $node)
|
||||||
) {
|
) {
|
||||||
// Find variables, parameters and use statements in the scope
|
// Find variables, parameters and use statements in the scope
|
||||||
$namePrefix = $node->getName() ?? '';
|
$namePrefix = $node->getName() ?? '';
|
||||||
foreach ($this->suggestVariablesAtNode($node, $namePrefix) as $var) {
|
foreach ($this->suggestVariablesAtNode($node, $namePrefix) as $var) {
|
||||||
|
|
|
@ -642,11 +642,11 @@ class DefinitionResolver
|
||||||
} else {
|
} else {
|
||||||
$classFqn = substr((string)$t->getFqsen(), 1);
|
$classFqn = substr((string)$t->getFqsen(), 1);
|
||||||
}
|
}
|
||||||
$fqn = $classFqn . '->' . $expr->memberName->getText($expr->getFileContents());
|
$fqn = $classFqn . '->' . $expr->memberName->getText($expr->getFileContents());
|
||||||
if ($expr->parent instanceof Node\Expression\CallExpression) {
|
if ($expr->parent instanceof Node\Expression\CallExpression) {
|
||||||
$fqn .= '()';
|
$fqn .= '()';
|
||||||
}
|
}
|
||||||
$def = $this->index->getDefinition($fqn);
|
$def = $this->index->getDefinition($fqn);
|
||||||
if ($def !== null) {
|
if ($def !== null) {
|
||||||
return $def->type;
|
return $def->type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue