From 060aa53231086e2352050fa1b731631cdd2c8896 Mon Sep 17 00:00:00 2001 From: Javad Sadeghi <34248444+LordDeveloper@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:58:46 +0330 Subject: [PATCH] Fixed Paginator.php --- src/Jeely/Tools/Paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jeely/Tools/Paginator.php b/src/Jeely/Tools/Paginator.php index 602185f..7d7e777 100644 --- a/src/Jeely/Tools/Paginator.php +++ b/src/Jeely/Tools/Paginator.php @@ -20,7 +20,7 @@ class Paginator implements PaginatorInterface protected int $pageCount = 1; - public function __construct(int $pageCount, protected int $currentPage = 1, protected string $pattern = '{page}') + public function __construct(float $pageCount, protected int $currentPage = 1, protected string $pattern = '{page}') { $pageCount = intval(ceil($pageCount));