diff --git a/src/Illuminate/Contracts/Pagination/Paginator.php b/src/Illuminate/Contracts/Pagination/Paginator.php index 09292f4a3143..04201cef4e9a 100644 --- a/src/Illuminate/Contracts/Pagination/Paginator.php +++ b/src/Illuminate/Contracts/Pagination/Paginator.php @@ -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(); diff --git a/src/Illuminate/Pagination/AbstractPaginator.php b/src/Illuminate/Pagination/AbstractPaginator.php index a4979840f3b3..ed04d5f97234 100644 --- a/src/Illuminate/Pagination/AbstractPaginator.php +++ b/src/Illuminate/Pagination/AbstractPaginator.php @@ -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() { @@ -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() {