From 7a31174bc5acdfb9b42b83a589fe0ae43100f2f3 Mon Sep 17 00:00:00 2001 From: Fredrick Peter Date: Mon, 8 May 2023 18:12:49 +0100 Subject: [PATCH] Collections count for first method - Fixed --- src/Collections/Traits/CollectionTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collections/Traits/CollectionTrait.php b/src/Collections/Traits/CollectionTrait.php index 0e67137..f7fbbc9 100644 --- a/src/Collections/Traits/CollectionTrait.php +++ b/src/Collections/Traits/CollectionTrait.php @@ -211,7 +211,7 @@ public function count(): int if(self::$check_paginate){ return count(self::$pagination_data); } elseif($this->unescapeIsObjectWithoutArray){ - return 0; + return 1; } return is_array($this->items) ? count($this->items): 0;