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; } /**