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

Instead of early bailout, try to process all possible response nodes.… #17

Merged
merged 1 commit into from
Nov 30, 2015
Merged

Instead of early bailout, try to process all possible response nodes.… #17

merged 1 commit into from
Nov 30, 2015

Conversation

johnny-bit
Copy link
Collaborator

Fixes #16

Generally I see no drawbacks in doing this 👍

@lifeofguenter lifeofguenter added this to the 0.2.0 milestone Nov 30, 2015
@lifeofguenter lifeofguenter modified the milestones: 0.1.6, 0.2.0 Nov 30, 2015
@lifeofguenter
Copy link
Member

Very cool thanks! I am not very religious on return types here, so I think an empty array if there is no data is legit.

Thats what I am cheking for in my example code anyways:

$data = $response->data();
if (empty($data) || !is_array($data)) {

lifeofguenter added a commit that referenced this pull request Nov 30, 2015
Instead of early bailout, try to process all possible response nodes.… thx @johnny-bit
@lifeofguenter lifeofguenter merged commit 63b82fc into AfriCC:master Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants