We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents deebe4b + 110fc9d commit 3f7e9b8Copy full SHA for 3f7e9b8
1 file changed
src/Bigcommerce/Api/Connection.php
@@ -330,7 +330,7 @@ private function handleResponse()
330
}
331
} elseif ($status >= 500 && $status <= 599) {
332
if ($this->failOnError) {
333
- throw new ServerError($body, $status, $this->responseHeaders);
+ throw new ServerError($body ?? '', $status, $this->responseHeaders);
334
} else {
335
$this->lastError = $body;
336
return false;
0 commit comments