Skip to content

Commit 3064124

Browse files
committed
Fix json_encode body
1 parent ab901b8 commit 3064124

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ApiCall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private function makeRequest(string $method, string $endPoint, bool $asJson, arr
205205
if (is_string($options['data'])) {
206206
$reqOp['body'] = $options['data'];
207207
} else {
208-
$reqOp['json'] = $options['data'];
208+
$reqOp['body'] = \json_encode($options['data']);
209209
}
210210
}
211211

0 commit comments

Comments
 (0)