mirror of
https://github.com/koel/koel
synced 2025-02-17 13:58:28 +00:00
fix: make isCompilation nullable
This commit is contained in:
parent
699e2b5a98
commit
7de788cb66
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue