diff --git a/README.md b/README.md index b068b01..35cdc6f 100644 --- a/README.md +++ b/README.md @@ -166,10 +166,10 @@ Cart::total(); * Search if the cart has a item * * @param Array $search An array with the item ID and optional options - * @return boolean + * @return Array|boolean */ - Cart::search(array('id' => 1, 'options' => array('size' => 'L'))); + Cart::search(array('id' => 1, 'options' => array('size' => 'L'))); // Returns an array of rowid(s) of found item(s) or false on failure ``` ## Collections diff --git a/src/Gloudemans/Shoppingcart/Cart.php b/src/Gloudemans/Shoppingcart/Cart.php index 65c2d28..d78dca0 100644 --- a/src/Gloudemans/Shoppingcart/Cart.php +++ b/src/Gloudemans/Shoppingcart/Cart.php @@ -208,7 +208,7 @@ class Cart { * Search if the cart has a item * * @param Array $search An array with the item ID and optional options - * @return boolean + * @return Array|boolean */ public function search($search) {