From 884475ba76d0762a3241e69f76c2df0bd4832f8d Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 13 Sep 2024 09:36:43 +0200 Subject: [PATCH] fix: Psalm static analysis issues Signed-off-by: Marcel Klehr --- lib/BackgroundJobs/StorageCrawlJob.php | 1 - lib/Service/TagManager.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/BackgroundJobs/StorageCrawlJob.php b/lib/BackgroundJobs/StorageCrawlJob.php index a63d5b4c..e8b1d5b5 100644 --- a/lib/BackgroundJobs/StorageCrawlJob.php +++ b/lib/BackgroundJobs/StorageCrawlJob.php @@ -77,7 +77,6 @@ protected function run($argument): void { } if (!in_array(ImagenetClassifier::MODEL_NAME, $models) && in_array(LandmarksClassifier::MODEL_NAME, $models)) { $tags = $this->tagManager->getTagsForFiles([$queueFile->getFileId()]); - /** @var \OCP\SystemTag\ISystemTag[] $fileTags */ $fileTags = $tags[$queueFile->getFileId()]; $landmarkTags = array_filter($fileTags, function ($tag) { return in_array($tag->getName(), LandmarksClassifier::PRECONDITION_TAGS); diff --git a/lib/Service/TagManager.php b/lib/Service/TagManager.php index 21ebd10f..116e57dc 100644 --- a/lib/Service/TagManager.php +++ b/lib/Service/TagManager.php @@ -79,7 +79,7 @@ public function assignTags(int $fileId, array $tags): void { /** * @param array $fileIds - * @return array + * @return array> */ public function getTagsForFiles(array $fileIds): array { /** @var array $tagsByFile */