private function filterOutAbstractDefinitions(array $definitions): array
    {
        foreach ($definitions as $key => $definition) {
            if ($definition->isAbstract()) {
                unset($definitions[$key]);
            }
        }

        return $definitions;
    }
private function filterOutAbstractDefinitions(array $definitions): array
    {
        foreach ($definitions as $key => $definition) {
            if ($definition->isAbstract()) {
                unset($definitions[$key]);
            }
        }

        return $definitions;
    }
private function filterOutAbstractDefinitions ( array $ definitions ) : array { foreach ( $ definitions as $ key => $ definition ) { if ( $ definition -> isAbstract ( ) ) { unset ( $ definitions [ $ key ] ) ; } } return $ definitions ; }
Abstract definitions cannot be the target of references

@param Definition[] $definitions
@return Definition[]
Abstract definitions cannot be the target of references