mirror of https://github.com/nextcloud/photos
Fix psalm errors
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
54cea6117b
commit
769064eecd
|
@ -203,7 +203,7 @@ class AlbumMapper {
|
|||
}
|
||||
}
|
||||
|
||||
return $files ?? [];
|
||||
return $files;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue