Merge pull request #1300 from nextcloud/fix/psalm_errors

Fix psalm errors
This commit is contained in:
Simon L 2022-09-27 13:48:47 +02:00 committed by GitHub
commit 2cad0f85b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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());
}
}