From 63e1bf6a6f36a7c895df8bda3ec675963eecd6a6 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Wed, 22 May 2024 00:22:49 +0700 Subject: [PATCH] fix: assertion in QueryCounter --- CHANGELOG.md | 4 ++++ .../src/Internal/QueryCounter.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9424ca3..43c89d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# 0.8.4 + +* fix: assertion in QueryCounter + # 0.8.3 * fix(keyset): going from 2nd last page to last page now works properly diff --git a/packages/rekapager-doctrine-orm-adapter/src/Internal/QueryCounter.php b/packages/rekapager-doctrine-orm-adapter/src/Internal/QueryCounter.php index 953e2f3..0defff7 100644 --- a/packages/rekapager-doctrine-orm-adapter/src/Internal/QueryCounter.php +++ b/packages/rekapager-doctrine-orm-adapter/src/Internal/QueryCounter.php @@ -57,7 +57,7 @@ public function count(): int } } - \assert($this->count > 0); + \assert($this->count >= 0); return $this->count; }