mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed phpstan error with NodesListBuilder
This commit is contained in:
parent
a37b8cbb15
commit
164efb0551
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ class NodesListBuilder
|
||||||
$repo = $this->em->getRepository($class_name);
|
$repo = $this->em->getRepository($class_name);
|
||||||
|
|
||||||
return array_map(static fn(AbstractDBElement $element) => $element->getID(),
|
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));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue