Skip to content

Commit

Permalink
Collections count for first method - Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Peter committed May 8, 2023
1 parent ac6d0fb commit 7a31174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collections/Traits/CollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a31174

Please sign in to comment.