This commit is contained in:
Jeremy Benoist 2019-02-07 17:30:38 +01:00
parent 448d99f84e
commit a91a3150fb
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C

View File

@ -247,7 +247,7 @@ class PocketImport extends AbstractImport
protected function jsonDecode(ResponseInterface $response) protected function jsonDecode(ResponseInterface $response)
{ {
$data = \json_decode((string) $response->getBody(), true); $data = json_decode((string) $response->getBody(), true);
if (JSON_ERROR_NONE !== json_last_error()) { if (JSON_ERROR_NONE !== json_last_error()) {
throw new \InvalidArgumentException('Unable to parse JSON data: ' . json_last_error_msg()); throw new \InvalidArgumentException('Unable to parse JSON data: ' . json_last_error_msg());