Skip to content

Commit

Permalink
[8.x] fix return type PHPDoc of the cursorPaginate method (#37850)
Browse files Browse the repository at this point in the history
  • Loading branch information
TundraWork authored Jun 28, 2021
1 parent b0ae212 commit 93e104d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Concerns/BuildsQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93e104d

Please sign in to comment.