fix: make isCompilation nullable

This commit is contained in:
Phan An 2022-07-28 10:56:02 +02:00
parent 699e2b5a98
commit 7de788cb66
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -52,7 +52,7 @@ class Album extends Model
* Get an album using some provided information.
* If such is not found, a new album will be created using the information.
*/
public static function getOrCreate(Artist $artist, ?string $name = null, bool $isCompilation = false): self
public static function getOrCreate(Artist $artist, ?string $name = null, ?bool $isCompilation = false): self
{
// If this is a compilation album, its artist must be "Various Artists"
if ($isCompilation) {