Skip to content

Commit

Permalink
Fix priceTotalFloat() error
Browse files Browse the repository at this point in the history
  • Loading branch information
iainheng committed Apr 11, 2024
1 parent a0ab741 commit 519885f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ public function initial($decimals = null, $decimalPoint = null, $thousandSeperat
*/
public function priceTotalFloat()
{
return $this->getContent()->reduce(function ($initial, CartItem $cartItem) {
return $this->getItems()->reduce(function ($initial, CartItem $cartItem) {
return $initial + $cartItem->priceTotal;
}, 0);
}
Expand Down

0 comments on commit 519885f

Please sign in to comment.