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

Use array_diff to Check Endpoint Parameters #514

Merged
merged 1 commit into from
Dec 16, 2016

Conversation

chrisguitarguy
Copy link
Contributor

Slightly nicer than the old array_search method that iterates through every user provided param. Also gives the user feed back on all invalid parameters at once, rather than just one at a time.

Also adds a test for AbstractEndpoint to verify that the exception does actually happen.

Slightly nicer than the old array_search method that iterates through
every user provided param. Also gives the user feed back on *all*
invalid parameters at once, rather than just one at a time.
@polyfractal
Copy link
Contributor

<3

@polyfractal polyfractal merged commit 376290a into elastic:master Dec 16, 2016
polyfractal pushed a commit that referenced this pull request Dec 16, 2016
Slightly nicer than the old array_search method that iterates through
every user provided param. Also gives the user feed back on *all*
invalid parameters at once, rather than just one at a time.
p365labs pushed a commit to p365labs/elasticsearch-php that referenced this pull request Sep 10, 2017
Slightly nicer than the old array_search method that iterates through
every user provided param. Also gives the user feed back on *all*
invalid parameters at once, rather than just one at a time.
p365labs pushed a commit to p365labs/elasticsearch-php that referenced this pull request Sep 10, 2017
Slightly nicer than the old array_search method that iterates through
every user provided param. Also gives the user feed back on *all*
invalid parameters at once, rather than just one at a time.
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