Update Cart.php

This commit is contained in:
Patrick
2022-02-05 19:27:40 +01:00
committed by GitHub
parent 9711c97545
commit 4c9c593625

View File

@@ -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);
}