mirror of https://github.com/nextcloud/photos
Merge pull request #1300 from nextcloud/fix/psalm_errors
Fix psalm errors
This commit is contained in:
commit
2cad0f85b7
|
@ -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