src/CompletionProvider.php
private function expandParentFqns(array $fqns) : Generator
    {
        foreach ($fqns as $fqn) {
            yield $fqn;
            $def = $this->index->getDefinition($fqn);
            if ($def !== null) {
                foreach ($def->getAncestorDefinitions($this->index) as $name => $def) {
                    yield $name;
                }
            }
        }
    }
private function expandParentFqns(array $fqns) : Generator
    {
        foreach ($fqns as $fqn) {
            yield $fqn;
            $def = $this->index->getDefinition($fqn);
            if ($def !== null) {
                foreach ($def->getAncestorDefinitions($this->index) as $name => $def) {
                    yield $name;
                }
            }
        }
    }
private function expandParentFqns ( array $ fqns ) : Generator { foreach ( $ fqns as $ fqn ) { yield $ fqn ; $ def = $ this -> index -> getDefinition ( $ fqn ) ; if ( $ def !== null ) { foreach ( $ def -> getAncestorDefinitions ( $ this -> index ) as $ name => $ def ) { yield $ name ; } } } }
Yields FQNs from an array along with the FQNs of all parent classes

@param string[] $fqns
@return Generator
Yields FQNs from an array along with the FQNs of all parent classes