ci: Add ability to find documentation for static functions defined in parent contexts
parent
18c6ccd137
commit
df1444502c
|
@ -493,6 +493,7 @@ class DefinitionResolver
|
|||
} elseif ($scoped->scopeResolutionQualifier instanceof Node\QualifiedName) {
|
||||
$className = $scoped->scopeResolutionQualifier->getResolvedName();
|
||||
}
|
||||
do {
|
||||
if ($scoped->memberName instanceof Node\Expression\Variable) {
|
||||
if ($scoped->parent instanceof Node\Expression\CallExpression) {
|
||||
return null;
|
||||
|
@ -508,6 +509,17 @@ class DefinitionResolver
|
|||
if ($scoped->parent instanceof Node\Expression\CallExpression) {
|
||||
$name .= '()';
|
||||
}
|
||||
$definition = $this->index->getDefinition($name);
|
||||
if(!!$definition) {
|
||||
break;
|
||||
} else {
|
||||
$class = $this->index->getDefinition((string)$className);
|
||||
if(!$class) {
|
||||
break;
|
||||
}
|
||||
$className = $class->extends[0];
|
||||
}
|
||||
} while (true);
|
||||
return $name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue