Skip to content

Commit 4b2ba01

Browse files
committed
fix: array result
1 parent 4c92fa2 commit 4b2ba01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Requests/Request.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ protected function request(
6464

6565
$payload = $response->object();
6666

67-
if (!($payload instanceof stdClass)) {
67+
// @phpstan-ignore-next-line
68+
if (!($payload instanceof stdClass) && !is_array($payload)) {
6869
throw new UnexpectedValueException();
6970
}
7071

0 commit comments

Comments
 (0)