Fixed static analysis issues.

This commit is contained in:
Jan Böhmer 2022-09-18 23:44:44 +02:00
parent 51e05a8669
commit 58ada496e4
4 changed files with 11 additions and 4 deletions

View file

@ -84,7 +84,9 @@ class NodesListBuilder
return $this->cache->get($key, function (ItemInterface $item) use ($class_name, $parent, $secure_class_name) {
// Invalidate when groups, a element with the class or the user changes
$item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]);
return $this->em->getRepository($class_name)->toNodesList($parent);
/** @var StructuralDBElementRepository $repo */
$repo = $this->em->getRepository($class_name);
return $repo->toNodesList($parent);
});
}