Skip to content

Commit

Permalink
Merge pull request #242 from sweet-greg/master
Browse files Browse the repository at this point in the history
return row on update
  • Loading branch information
Crinsane committed Nov 2, 2016
2 parents 143d51b + a3838c0 commit 3ec0cef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function add($id, $name = null, $qty = null, $price = null, array $option
*
* @param string $rowId
* @param mixed $qty
* @return void
* @return \Gloudemans\Shoppingcart\CartItem
*/
public function update($rowId, $qty)
{
Expand Down Expand Up @@ -151,6 +151,8 @@ public function update($rowId, $qty)
$this->events->fire('cart.updated', $cartItem);

$this->session->put($this->instance, $content);

return $cartItem;
}

/**
Expand Down

0 comments on commit 3ec0cef

Please sign in to comment.