Fixed phpstan error with NodesListBuilder

This commit is contained in:
Jan Böhmer 2024-12-29 13:14:00 +01:00
parent a37b8cbb15
commit 164efb0551

View file

@ -104,7 +104,8 @@ class NodesListBuilder
$repo = $this->em->getRepository($class_name);
return array_map(static fn(AbstractDBElement $element) => $element->getID(),
$repo instanceof StructuralDBElementRepository ? $repo->getFlatList($parent) : $repo->getFlatList());
//@phpstan-ignore-next-line For some reason phpstan does not understand that $repo is a StructuralDBElementRepository
$repo->getFlatList($parent));
});
}