From a02990771cfc159a9f90a4958e5203284d7d61f2 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Sat, 6 Jul 2024 12:04:18 +0700 Subject: [PATCH] fix: remove `api_lite_rekapager` check in `RekapagerPageablePaginatorApplier` (#28) --- CHANGELOG.md | 1 + .../RekapagerPageablePaginatorApplier.php | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4daa63f..ab2df6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * build: exclude buggy `symfony/property-info`, https://github.com/symfony/symfony/issues/57634 +* fix: remove `api_lite_rekapager` check in `RekapagerPageablePaginatorApplier` ## 0.7.2 diff --git a/src/PaginatorApplier/Implementation/RekapagerPageablePaginatorApplier.php b/src/PaginatorApplier/Implementation/RekapagerPageablePaginatorApplier.php index e58e7de..4fd12b5 100644 --- a/src/PaginatorApplier/Implementation/RekapagerPageablePaginatorApplier.php +++ b/src/PaginatorApplier/Implementation/RekapagerPageablePaginatorApplier.php @@ -35,16 +35,6 @@ public function applyPaginator( Operation $operation, array $context, ): iterable { - /** @psalm-suppress InternalMethod */ - $extraProperties = $operation->getExtraProperties() ?? []; - - /** @var bool */ - $isEnabled = $extraProperties['api_lite_rekapager'] ?? false; - - if (!$isEnabled) { - throw new UnsupportedObjectException($this, $object); - } - /** @psalm-suppress DocblockTypeContradiction */ if (!$object instanceof PageableInterface) { /** @psalm-suppress NoValue */