Skip to content

Commit 1b90806

Browse files
Updated response from getArrayFromResponse.
1 parent fe39206 commit 1b90806

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ComplySciApiClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ protected function _getArrayFromResponse( ResponseInterface $response ): array {
7979
// Cast to a string: { ... }
8080
$body->seek( 0 );
8181

82-
return json_decode( $body, TRUE );
82+
$jsonDecodedBody = json_decode( $body, TRUE );
83+
return $jsonDecodedBody ?? [];
8384
}
8485

8586

0 commit comments

Comments
 (0)