Skip to content

Commit 3f017f0

Browse files
matej21dg
authored andcommitted
Paginator::getLength returns only int (#144)
1 parent 20d16c4 commit 3f017f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Utils/Paginator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @property int|null $itemCount
2727
* @property-read int $offset
2828
* @property-read int|null $countdownOffset
29-
* @property-read int|null $length
29+
* @property-read int $length
3030
*/
3131
class Paginator
3232
{
@@ -206,9 +206,8 @@ public function getCountdownOffset()
206206

207207
/**
208208
* Returns the number of items on current page.
209-
* @return int|null
210209
*/
211-
public function getLength()
210+
public function getLength(): int
212211
{
213212
return $this->itemCount === null
214213
? $this->itemsPerPage

0 commit comments

Comments
 (0)