Skip to content

Commit 3dc1468

Browse files
committed
Merge branch 'release/1.2.7'
2 parents df6fec3 + 529098e commit 3dc1468

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.6
1+
1.2.7

src/Api/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function request($path, $data = [], $method = 'GET'): ?array
195195
'Authorization' => $this->token,
196196
'Content-Type' => 'application/json',
197197
],
198-
'body' => json_encode($data ?? []),
198+
'body' => empty($data) ? null : json_encode($data),
199199
]
200200
)
201201
->getBody()

tests/Api/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function it_makes_expected_request_to_api($function, $method, $data, $par
259259
'Authorization' => $token,
260260
'Content-Type' => 'application/json',
261261
],
262-
'body' => json_encode($data ?? []),
262+
'body' => empty($options) ? null : json_encode($options),
263263
],
264264
]
265265
)

0 commit comments

Comments
 (0)