Fix psalm errors

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2022-09-27 11:37:04 +02:00
parent 54cea6117b
commit 769064eecd
2 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ class AlbumMapper {
}
}
return $files ?? [];
return $files;
}
/**

View File

@ -78,6 +78,6 @@ class AlbumWithFiles {
* @return AlbumFile[]
*/
private function fetchFiles(): array {
return $this->albumMapper->getForAlbumIdAndUserWithFiles($this->info->getId(), $this->info->getUserId()) ?? [];
return $this->albumMapper->getForAlbumIdAndUserWithFiles($this->info->getId(), $this->info->getUserId());
}
}