From 5b5e4e6b17999bb3f9d60863a2f062d0682da955 Mon Sep 17 00:00:00 2001 From: Andrea Marco Sartori Date: Mon, 15 Jan 2024 17:48:52 +1000 Subject: [PATCH] Rely on abstraction --- src/Paginations/Pagination.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paginations/Pagination.php b/src/Paginations/Pagination.php index b66424a..b785968 100644 --- a/src/Paginations/Pagination.php +++ b/src/Paginations/Pagination.php @@ -5,7 +5,7 @@ namespace Cerbero\LazyJsonPages\Paginations; use Cerbero\LazyJsonPages\Dtos\Config; -use Cerbero\LazyJsonPages\Sources\AnySource; +use Cerbero\LazyJsonPages\Sources\Source; use IteratorAggregate; use Traversable; @@ -29,7 +29,7 @@ abstract public function matches(): bool; abstract public function getIterator(): Traversable; final public function __construct( - protected readonly AnySource $source, + protected readonly Source $source, protected readonly Config $config, ) {} }