Skip to content

Commit

Permalink
PHP 7.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Baettig committed Jan 17, 2020
1 parent 3940e9b commit fb81c59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Support/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public static function get(string $url, array $params = []): array
if (curl_errno($curl)) {
throw new ApiException(curl_error($curl));
}
return json_decode($response, true, 512, JSON_THROW_ON_ERROR);
/** @noinspection JsonEncodingApiUsageInspection */
return json_decode($response, true, 512);
} catch (Exception $e){
throw new ApiException($e);
} finally {
Expand Down

0 comments on commit fb81c59

Please sign in to comment.