diff --git a/source/Domains/Requests/Item.php b/source/Domains/Requests/Item.php index 8082f315..9c16df19 100644 --- a/source/Domains/Requests/Item.php +++ b/source/Domains/Requests/Item.php @@ -64,6 +64,10 @@ public function getItems() public function itemLenght() { - return count(current($this->items)); + if((current($this->items) instanceof \Countable) || \is_array(current($this->items))) { + return count(current($this->items)); + } + + return count($this->items); } }