From 822ce588f465724bebc4124a32c30e901837d1bd Mon Sep 17 00:00:00 2001 From: Rob Gloudemans Date: Mon, 3 Jun 2013 16:12:08 +0200 Subject: [PATCH] Updated readme and phpdocs --- README.md | 4 ++-- src/Gloudemans/Shoppingcart/Cart.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {