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

Allow passing iterables to Enum::in() #212

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

zarunet
Copy link
Contributor

@zarunet zarunet commented Feb 10, 2021

  • Added or updated tests
  • Added or updated the README.md
  • Detailed changes in the CHANGELOG.md unreleased section

Related Issue/Intent

I often have to deal with enums in collections. Having to cast said collections back to array when using the in() method is mildly inconvenient.

Changes

This PR changes the signature of in() to accept an iterable instead of an array.

Breaking changes

None

@zarunet zarunet marked this pull request as ready for review February 10, 2021 13:24
@BenSampo BenSampo merged commit 974e8e9 into BenSampo:master Feb 16, 2021
@BenSampo
Copy link
Owner

Great PR, thanks - merged.

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