Update Cart.php

Changed default value of $weight to 0
This commit is contained in:
Patrick
2019-06-23 00:25:32 +02:00
committed by GitHub
parent 0c36a1d72e
commit ecb4d9717a

View File

@@ -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) {