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

Add a method to test if a collection has an element. #32

Closed
wants to merge 1 commit into from

Conversation

tdashton
Copy link
Contributor

The objective of this PR is to allow a developer to quickly determine if a given collection which s/he is using contains a particular element by adding a method will tell you if your collection contains the given value. Please note that this method encapsulates the php in_array() method and as such can produce unexpected results when using loose checking.

…n_array function, unit test it and update the docs.
@tdashton tdashton requested a review from a team as a code owner July 11, 2024 11:58
Copy link

@tdashton tdashton changed the title Add a method to test if a Collection has an element. Add a method to test if a collection has an element. Jul 11, 2024
@hugo-goncalves-kununu
Copy link
Collaborator

Integrated into #34

@hugo-goncalves-kununu hugo-goncalves-kununu deleted the add-has-method-to-collection-trait branch July 15, 2024 15:52
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