From 4c9c5936254377ee8fc36cf45e9f06b8068a51ba Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 19:27:40 +0100 Subject: [PATCH] Update Cart.php --- src/Cart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cart.php b/src/Cart.php index bc75702..3eb9ede 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -51,7 +51,7 @@ class Cart /** * Defines the discount percentage. */ - private ?Money $discount = null; + private float $discount = 0; /** * Defines the tax rate. @@ -173,7 +173,7 @@ class Cart { $item->setInstance($this->currentInstance()); - if (!$keepDiscount) { + if (! $keepDiscount) { $item->setDiscountRate($this->discount); }