From 70a232253b3935c9aef422436e9f3f85771ff4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mat=C4=9Bjka?= Date: Wed, 12 Jul 2017 14:35:00 +0200 Subject: [PATCH] Paginator::getLength returns only int --- src/Utils/Paginator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Utils/Paginator.php b/src/Utils/Paginator.php index 8809d5e21..ac89b8b2f 100644 --- a/src/Utils/Paginator.php +++ b/src/Utils/Paginator.php @@ -206,9 +206,8 @@ public function getCountdownOffset() /** * Returns the number of items on current page. - * @return int|null */ - public function getLength() + public function getLength(): int { return $this->itemCount === null ? $this->itemsPerPage