From 6571efdfc00d2a62cac9c978e9d4505484fd00d6 Mon Sep 17 00:00:00 2001 From: Quentin Gabriele Date: Thu, 5 Sep 2024 23:08:48 +0200 Subject: [PATCH] fix livewire --- src/InvoiceDiscount.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InvoiceDiscount.php b/src/InvoiceDiscount.php index 38f8be2..3c91229 100644 --- a/src/InvoiceDiscount.php +++ b/src/InvoiceDiscount.php @@ -98,7 +98,7 @@ public function jsonSerialize(): array * percent_off: ?float, * } */ - public function toLivewire(): array + public function toLivewire() { return $this->toArray(); } @@ -112,7 +112,7 @@ public function toLivewire(): array * percent_off: ?float, * } $value */ - public static function fromLivewire(?array $value): static + public static function fromLivewire($value) { return static::fromArray($value); }