diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-27 14:07:30 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-27 14:07:30 +0300 |
commit | f08ce43ae54c0109b18efe842fde9b29d405aeff (patch) | |
tree | 1d4e0da1269fc171e1d46eda4aa7137075d13c78 /lib | |
parent | b35fde83c48979b9e476bcfabbcfeacfdf91c27a (diff) |
Remove JSON_THROW_ON_ERROR since it is only available on PHP >= 7.3
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/FederationService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/FederationService.php b/lib/Service/FederationService.php index cd8ff4c2..8d641c36 100644 --- a/lib/Service/FederationService.php +++ b/lib/Service/FederationService.php @@ -173,7 +173,7 @@ class FederationService { ] ]); $responseBody = $response->getBody(); - $data = \json_decode($responseBody, true, 512, JSON_THROW_ON_ERROR); + $data = \json_decode($responseBody, true, 512); $this->logger->debug('Reveived remote file details for ' . $remoteToken . ' from ' . $remote . ': ' . $responseBody); return $data['ocs']['data']; } catch (\Throwable $e) { |