Skip to content

Commit fb7558a

Browse files
committed
Merge branch 'master' into 3.2-merge
2 parents 33df09b + f7daebd commit fb7558a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function initRequest(string $method, string $path, array $options = []):
184184
$uri = (new Uri($this->baseUri . ltrim($path, '/')))->withQuery(http_build_query($query));
185185

186186
$content = http_build_query($params);
187-
if ($method == 'POST' && data_get($headers, 'Content-Type') == 'application/json') {
187+
if (data_get($headers, 'Content-Type') == 'application/json' && ! empty($json)) {
188188
$content = json_encode($json, JSON_UNESCAPED_UNICODE);
189189
$data = $json;
190190
}

src/Concerns/RunTestsInCoroutine.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ final protected function runTest(): mixed
6262
parent::setName('runTestsInCoroutine');
6363
}
6464

65+
/* @phpstan-ignore-next-line */
6566
return parent::runTest();
6667
}
6768

0 commit comments

Comments
 (0)