diff --git a/app/Invoice/Models/Invoice.php b/app/Invoice/Models/Invoice.php index b5896511..6b8a7941 100644 --- a/app/Invoice/Models/Invoice.php +++ b/app/Invoice/Models/Invoice.php @@ -47,7 +47,7 @@ class Invoice extends Model /** * @param Collection $members */ - public static function createForMember(Member $member, Collection $members, int $year, Subscription $subscription = null): self + public static function createForMember(Member $member, Collection $members, int $year, ?Subscription $subscription = null): self { $invoice = new self([ 'to' => [