Update Cart.php

This commit is contained in:
Patrick
2022-02-03 00:18:36 +01:00
committed by GitHub
parent 5e6adedd70
commit 1b866e50e6

View File

@@ -366,7 +366,7 @@ class Cart
public function priceTotal(): Money public function priceTotal(): Money
{ {
return $this->getContent()->reduce(function (Money $initial, CartItem $cartItem) { return $this->getContent()->reduce(function (Money $initial, CartItem $cartItem) {
return $initial->add($cartItem->priceTotal) return $initial->add($cartItem->priceTotal);
}, new Money()); }, new Money());
} }