Skip to content

Commit

Permalink
Fix return value to int or null. (laravel#46802)
Browse files Browse the repository at this point in the history
  • Loading branch information
u2d-man authored Apr 17, 2023
1 parent 997218b commit 17ad285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Contracts/Pagination/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ public function items();
/**
* Get the "index" of the first item being paginated.
*
* @return int
* @return int|null
*/
public function firstItem();

/**
* Get the "index" of the last item being paginated.
*
* @return int
* @return int|null
*/
public function lastItem();

Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Pagination/AbstractPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public function items()
/**
* Get the number of the first item in the slice.
*
* @return int
* @return int|null
*/
public function firstItem()
{
Expand All @@ -329,7 +329,7 @@ public function firstItem()
/**
* Get the number of the last item in the slice.
*
* @return int
* @return int|null
*/
public function lastItem()
{
Expand Down

0 comments on commit 17ad285

Please sign in to comment.