Skip to content

Commit

Permalink
fix: CollectionAdapter now accepts ReadableCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Mar 31, 2024
1 parent a6a261f commit c44b941
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Rekalogika\Rekapager\Doctrine\Collections;

use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ReadableCollection;
use Rekalogika\Rekapager\Offset\OffsetPaginationAdapterInterface;

/**
Expand All @@ -24,10 +24,10 @@
final class CollectionAdapter implements OffsetPaginationAdapterInterface
{
/**
* @param Collection<TKey,T> $collection
* @param ReadableCollection<TKey,T> $collection
*/
public function __construct(
private readonly Collection $collection,
private readonly ReadableCollection $collection,
) {
}

Expand Down

0 comments on commit c44b941

Please sign in to comment.