From c1e62b81965004e1cc8bf46ed8881d1015ddcfb2 Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sun, 24 Jan 2016 22:22:29 +0000 Subject: [PATCH] Fix docblock and remove stupidity check --- Packer.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Packer.php b/Packer.php index eb5ad107..c9037319 100644 --- a/Packer.php +++ b/Packer.php @@ -58,19 +58,17 @@ public function addItem(Item $item, $qty = 1) /** * Set a list of items all at once - * @param \Traversable $items + * @param \Traversable|array $items */ public function setItems($items) { if ($items instanceof ItemList) { $this->items = clone $items; - } elseif (is_array($items)) { + } else { $this->items = new ItemList(); foreach ($items as $item) { $this->items->insert($item); } - } else { - throw new \RuntimeException('Not a valid list of items'); } }