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 1 commit into from Feb 11, 2019


None yet
2 participants
Copy link

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
continuous-integration/styleci/pr The analysis has passed
continuous-integration/travis-ci/pr The Travis CI build passed

This comment has been minimized.

Copy link

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