From 0c912d672c5bae8964e419e7548c3245f85ca948 Mon Sep 17 00:00:00 2001 From: heui Date: Mon, 13 Apr 2026 23:30:06 +0800 Subject: [PATCH] Cast total to int before returning in Paginator think\Paginator::total(): Return value must be of type int, null returned --- src/Paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paginator.php b/src/Paginator.php index a9f73910..ac8f2827 100644 --- a/src/Paginator.php +++ b/src/Paginator.php @@ -266,7 +266,7 @@ public function total(): int throw new DomainException('not support total'); } - return $this->total; + return (int) $this->total; } /**