From 282e5612c49da96042b422ee918dc6146fc305c7 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Mon, 29 Jul 2024 00:18:50 +0700 Subject: [PATCH] chore: cleanup --- .../src/SelectableAdapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rekapager-doctrine-collections-adapter/src/SelectableAdapter.php b/packages/rekapager-doctrine-collections-adapter/src/SelectableAdapter.php index 0704f4b..4b4f8df 100644 --- a/packages/rekapager-doctrine-collections-adapter/src/SelectableAdapter.php +++ b/packages/rekapager-doctrine-collections-adapter/src/SelectableAdapter.php @@ -124,7 +124,7 @@ public function countOffsetItems(int $offset = 0, ?int $limit = null): int $criteria->setMaxResults($limit); } - return \count($this->collection->matching($criteria)); + return count($this->collection->matching($criteria)->toArray()); } // @@ -265,7 +265,7 @@ public function countKeysetItems( // // return $this->collection->matching($criteria)->count(); - return \count($this->collection->matching($criteria)); + return count($this->collection->matching($criteria)->toArray()); } /**