Skip to content

Conversation

@GeLoLabs
Copy link
Contributor

@GeLoLabs GeLoLabs commented Nov 9, 2024

Q A
Branch? 3.4
Tickets -
License MIT
Doc PR -

Hello,

When using Doctrine or Elastic paginator, it behaves by giving an empty array when the page is out of bounds but when using the Array paginator, it throws an OutOfBoundsException.

This PR align this behavior accross all paginators.

@GeLoLabs GeLoLabs force-pushed the array-paginator-out-of-bounds branch from 6ae1dec to a184a73 Compare November 9, 2024 13:47
@soyuka soyuka changed the title Support first result greater than total items on paginator array adapter fix(state): empty result when the array paginator is out of bound Nov 14, 2024
@soyuka soyuka merged commit aa1667d into api-platform:3.4 Nov 14, 2024
79 of 80 checks passed
@soyuka
Copy link
Member

soyuka commented Nov 14, 2024

thanks @GeLoLabs !

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