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

[feat] inArray and notInArray accept empty list #2502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RemiPeruto
Copy link

close #1295

Make inArray and notInArray methods accept an empty list as their second parameter instead of throwing an error :

  • inArray returns false when called with an empty list
  • notInArray returns true when called with an empty list

the comment referencing the choice of implementation in the thread

Make inArray and notInArray methods accept an empty list as their second parameter
@RemiPeruto RemiPeruto force-pushed the feat/allow-empty-list-for-in-array-and-not-in-array branch from fc80d21 to a50ebc3 Compare June 13, 2024 08:13
@RemiPeruto
Copy link
Author

@philippdormann You reviewed the same changes back in march of this year in the MR #1664
If it is still ok for you could you please approve my MR to merge those changes.
Thanks a lot !

@ThomasAribart
Copy link

@RemiPeruto @AndriiSherman This PR would actually fix an issue in my project, could you review it please?

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.

[FEATURE]: Allow to pass empty values to inArray
2 participants