Skip to content

v1.7.2

Choose a tag to compare

@dunnbot dunnbot released this 12 Sep 20:24
· 7 commits to master since this release
a246614

Paginated resources that carry the query string onto their links now type correctly without a warning.

Fixed

  • Pass-through paginator methods are classified correctlyResource::collection($query->paginate()->withQueryString()) (and appends, withPath, setPageName, fragment, onEachSide) now resolves to the right envelope by looking through the pass-through to the underlying paginate / simplePaginate / cursorPaginate. Previously the outer pass-through call defeated the classifier, so the prop warned and typed as a bare array.
  • A @ferry pin silences the unresolved-paginator warning — pinning a prop to an explicit paginator type (e.g. LengthAwarePaginated<SomeResource>) now clears the classifier warning as well as setting the type, so an explicit pin fully answers anything the classifier can't decide.