-
I have a paginated request that i wish to get page 2 of. i figured that i would need to set the start page and max pages and it works fine locally, but it seems to fail in CI saying that setStartPage is undefined. Call to undefined method Saloon\PaginationPlugin\OffsetPaginator@anonymous::setStartPage() at tests/Feature/Requests/Search/GetSearchRequestTest.php: $paginator = $this->connector->paginate($paginatorRequest);
$paginator->setPerPageLimit(5)
->setStartPage(2)
->setMaxPages(2); Am i doing something wrong here or is this a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @RhysLees! That method definitely exists in the pagination plugin! Does your CI use Let me know if that doesn't work. |
Beta Was this translation helpful? Give feedback.
Hey @RhysLees!
That method definitely exists in the pagination plugin! Does your CI use
composer install --prefer-lowest
or anything like that? If your CI does, then just change the pagination plugin to the latest minor version. For example, thesetStartPage
was only added in Saloon^2.1
so you need to set that to be your minimum.Let me know if that doesn't work.