From ecb4d9717a805b5af19c99733742d6ad78494d49 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 23 Jun 2019 00:25:32 +0200 Subject: [PATCH] Update Cart.php Changed default value of $weight to 0 --- src/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cart.php b/src/Cart.php index 0e2269c..97097a0 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -110,7 +110,7 @@ class Cart * * @return \Gloudemans\Shoppingcart\CartItem */ - public function add($id, $name = null, $qty = null, $price = null, $weight = null, array $options = []) + public function add($id, $name = null, $qty = null, $price = null, $weight = 0, array $options = []) { if ($this->isMulti($id)) { return array_map(function ($item) {