Skip to content

Commit

Permalink
Merge pull request wowiwj#9 from wujunze/patch-2
Browse files Browse the repository at this point in the history
fix  issue 8
  • Loading branch information
wowiwj authored Nov 20, 2019
2 parents b2a410b + 9f154fa commit 5e71c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ public function send($params): array
]);

$result = $request->getBody()->getContents();
return json_decode($result, true);
return json_decode($result, true) ?? [];
}
}

0 comments on commit 5e71c7a

Please sign in to comment.