From 93e104d96924019986b24350f5090409725f8792 Mon Sep 17 00:00:00 2001 From: Jiayi Cheng Date: Mon, 28 Jun 2021 23:01:05 +0800 Subject: [PATCH] [8.x] fix return type PHPDoc of the cursorPaginate method (#37850) --- src/Illuminate/Database/Concerns/BuildsQueries.php | 2 +- src/Illuminate/Database/Query/Builder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/Concerns/BuildsQueries.php b/src/Illuminate/Database/Concerns/BuildsQueries.php index 461ef71156e3..d95b5de6b70d 100644 --- a/src/Illuminate/Database/Concerns/BuildsQueries.php +++ b/src/Illuminate/Database/Concerns/BuildsQueries.php @@ -332,7 +332,7 @@ protected function simplePaginator($items, $perPage, $currentPage, $options) * @param int $perPage * @param \Illuminate\Pagination\Cursor $cursor * @param array $options - * @return \Illuminate\Pagination\Paginator + * @return \Illuminate\Pagination\CursorPaginator */ protected function cursorPaginator($items, $perPage, $cursor, $options) { diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 76603f939b50..807e16c1b60f 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -2407,7 +2407,7 @@ public function simplePaginate($perPage = 15, $columns = ['*'], $pageName = 'pag * @param array $columns * @param string $cursorName * @param string|null $cursor - * @return \Illuminate\Contracts\Pagination\Paginator + * @return \Illuminate\Contracts\Pagination\CursorPaginator * @throws \Illuminate\Pagination\CursorPaginationException */ public function cursorPaginate($perPage = 15, $columns = ['*'], $cursorName = 'cursor', $cursor = null)