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

exception 'ErrorException' with message 'array_key_exists() expects parameter 2 to be array, null given' #3

Open
nbombau opened this issue Aug 5, 2015 · 0 comments

Comments

@nbombau
Copy link

nbombau commented Aug 5, 2015

When sending a request curl_exec() can return false on failure. The return value is used when instantiating a SiftResponse.

In the SiftResponse constructor, when performing json_decode($result, true); and $result is false is returns null. array_key_exists() can't handle a null value and it being called a couple of lines down.

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

No branches or pull requests

1 participant