We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deebe4b commit 110fc9dCopy full SHA for 110fc9d
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