Skip to content

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

Open
@Fuzzyma

Description

@Fuzzyma

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) {
  // 
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions