diff --git a/src/Services/Trees/NodesListBuilder.php b/src/Services/Trees/NodesListBuilder.php index d7466e40..e65fa37e 100644 --- a/src/Services/Trees/NodesListBuilder.php +++ b/src/Services/Trees/NodesListBuilder.php @@ -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)); }); }