Skip to content

Commit a7c8fce

Browse files
committed
fix: payload is null when encounter 5xx error [SPMVP-7314]
1 parent 53096c0 commit a7c8fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Requests/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function request(
105105

106106
if (! $response->successful()) {
107107
$this->toException(
108-
$payload,
108+
$payload ?: new stdClass(),
109109
$response->body(),
110110
$response->status(),
111111
);

0 commit comments

Comments
 (0)