Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jun 24, 2024
1 parent 1b29624 commit 404ea3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use Illuminate\Mail\Attachment;
Expand Down Expand Up @@ -124,7 +125,7 @@ public static function booted()
});
}

public function items()
public function items(): HasMany
{
return $this->hasMany(config('invoices.model_invoice_item'));
}
Expand Down

0 comments on commit 404ea3f

Please sign in to comment.