From c44b94123611f768971ab7dfa29b0a63bba10f2e Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Sun, 31 Mar 2024 13:53:59 +0700 Subject: [PATCH] fix: CollectionAdapter now accepts ReadableCollection --- .../src/CollectionAdapter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rekapager-doctrine-collections-adapter/src/CollectionAdapter.php b/packages/rekapager-doctrine-collections-adapter/src/CollectionAdapter.php index b40b1dd..5f34409 100644 --- a/packages/rekapager-doctrine-collections-adapter/src/CollectionAdapter.php +++ b/packages/rekapager-doctrine-collections-adapter/src/CollectionAdapter.php @@ -13,7 +13,7 @@ namespace Rekalogika\Rekapager\Doctrine\Collections; -use Doctrine\Common\Collections\Collection; +use Doctrine\Common\Collections\ReadableCollection; use Rekalogika\Rekapager\Offset\OffsetPaginationAdapterInterface; /** @@ -24,10 +24,10 @@ final class CollectionAdapter implements OffsetPaginationAdapterInterface { /** - * @param Collection $collection + * @param ReadableCollection $collection */ public function __construct( - private readonly Collection $collection, + private readonly ReadableCollection $collection, ) { }