Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from Ticketpark/handle_response
Browse files Browse the repository at this point in the history
Fixed json_decode() to return an array instead of stdClass
  • Loading branch information
sprain committed Jan 11, 2016
2 parents 21966d5 + e779520 commit fc60c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SeatsIo/SeatsIo.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ protected function handleResponse(Response $response)
}
}

$jsonDecoded = json_decode($content);
$jsonDecoded = json_decode($content, true);
if (json_last_error() == JSON_ERROR_NONE) {
return $jsonDecoded;
} else {
Expand Down

0 comments on commit fc60c1d

Please sign in to comment.