diff --git a/src/Models/CartItemModel.php b/src/Models/CartItemModel.php index 01f42b6..2988cc9 100644 --- a/src/Models/CartItemModel.php +++ b/src/Models/CartItemModel.php @@ -88,7 +88,7 @@ class CartItemModel extends Model public function discount(): Attribute { return new Attribute( - get: fn ($value, $attributes): Money => { + get: fn ($value, $attributes): Money { if (! $attributes['discount_fixed']) { return $attribute['price_all']->subtract($attributes['discount_fixed']) } else {