Skip to content

Commit 17119f7

Browse files
committed
Fix arrayGet type exception on transport when getting errors with null body
1 parent 78ae8c5 commit 17119f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transports/Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function request($endpoint, array $data = [], $method = 'get')
112112
sprintf(
113113
'The request ended on a %s code : %s',
114114
$httpStatusCode,
115-
$this->arrayGet($response, $this->getErrorKey()) ?? $rawResponse ?? 'Unknown error message'
115+
$this->arrayGet($response ?? [], $this->getErrorKey()) ?? $rawResponse ?? 'Unknown error message'
116116
),
117117
$httpStatusCode
118118
);

0 commit comments

Comments
 (0)