Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursorPaginate() returns the contract and not the actual instance #1611

Open
Fuzzyma opened this issue Nov 12, 2024 · 0 comments
Open

cursorPaginate() returns the contract and not the actual instance #1611

Fuzzyma opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@Fuzzyma
Copy link

Fuzzyma commented Nov 12, 2024

Versions:

  • ide-helper Version: 3.2
  • Laravel Version: 11.9
  • PHP Version: 8.3

Description:

Calling cursorPaginate() returns the Contract type but the actual instance has more methods (e.g. the through() method).

Steps To Reproduce:

$paginator = SomeModel::all()->cursorPaginate(10);
// shows error in ide
$paginator->through(function ($model) {
  // 
});
@Fuzzyma Fuzzyma added the bug label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant