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 getKeys and getValues methods #3

Merged
merged 1 commit into from Feb 11, 2019

Conversation

Projects
None yet
2 participants
@faustbrian
Copy link
Contributor

faustbrian commented Feb 11, 2019

If you want to perform a check like in_array('Offline', array_values(Status::toArray())) its nicer to write in_array('Offline', Status::getValues()).

@brendt brendt merged commit b47dfe4 into spatie:master Feb 11, 2019

3 checks passed

Scrutinizer 2 updated code elements
Details
continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@brendt

This comment has been minimized.

Copy link
Member

brendt commented Feb 11, 2019

Good addition, thanks!

@faustbrian faustbrian deleted the faustbrian:keys-and-values branch Feb 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment