diff --git a/CHANGELOG.md b/CHANGELOG.md index d924d4ff..74e9d9d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 4.7.0 (2024-??-??) + +- [#56](https://github.com/BabDev/Pagerfanta/issues/56) Add support for `Doctrine\Common\Collections\ReadableCollection` in `Pagerfanta\Doctrine\Collections\CollectionAdapter` + ## 4.6.0 (2024-05-29) - Add support for `ruflin/elastica` 8.x diff --git a/lib/Adapter/Doctrine/Collections/CollectionAdapter.php b/lib/Adapter/Doctrine/Collections/CollectionAdapter.php index 27177d3a..4bb615e4 100644 --- a/lib/Adapter/Doctrine/Collections/CollectionAdapter.php +++ b/lib/Adapter/Doctrine/Collections/CollectionAdapter.php @@ -2,7 +2,7 @@ namespace Pagerfanta\Doctrine\Collections; -use Doctrine\Common\Collections\Collection; +use Doctrine\Common\Collections\ReadableCollection; use Pagerfanta\Adapter\AdapterInterface; /** @@ -16,10 +16,10 @@ class CollectionAdapter implements AdapterInterface { /** - * @param Collection $collection + * @param ReadableCollection $collection */ public function __construct( - private readonly Collection $collection, + private readonly ReadableCollection $collection, ) {} /**