Skip to content

[11.x] Backport "Change paginate() method return types to \Illuminate\Pagination\LengthAwarePaginator"#54917

Merged
taylorotwell merged 1 commit into
laravel:11.xfrom
carestad:paginate-types
Mar 5, 2025
Merged

[11.x] Backport "Change paginate() method return types to \Illuminate\Pagination\LengthAwarePaginator"#54917
taylorotwell merged 1 commit into
laravel:11.xfrom
carestad:paginate-types

Conversation

@carestad
Copy link
Copy Markdown
Contributor

@carestad carestad commented Mar 5, 2025

Backport of #54826 to 11.x branch.

Return types of all the subsequent calls are returning this, which in turn implements \Illuminate\Contracts\Pagination\LengthAwarePaginator

Related to bmewburn/vscode-intelephense#2912. Which I in turn had issues with locally where calling methods to the returned data from ->paginage() did not auto complete.

…ngthAwarePaginator` (laravel#54826)

Return types of all the subsequent calls are returning this, which in turn implements `\Illuminate\Contracts\Pagination\LengthAwarePaginator`

Related to bmewburn/vscode-intelephense#2912. Which I in turn had issues with locally where calling methods to the returned data from `->paginage()` did not auto complete.

Hope this is possible to backport to 11.x too if this is a change that is okay.
@crynobone crynobone changed the title [11.x] Backport "Change paginage() method return types to \Illuminate\Pagination\LengthAwarePaginator" [11.x] Backport "Change paginate() method return types to \Illuminate\Pagination\LengthAwarePaginator" Mar 5, 2025
@taylorotwell taylorotwell merged commit f5679ce into laravel:11.x Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants