We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e50613b + 6730f06 commit bf2409dCopy full SHA for bf2409d
src/Message/Request/AbstractMollieRequest.php
@@ -72,7 +72,7 @@ protected function sendRequest($method, $endpoint, array $data = null)
72
[
73
'Authorization' => 'Bearer ' . $this->getApiKey()
74
],
75
- json_encode($data)
+ ($data === null) ? null : json_encode($data)
76
);
77
78
return json_decode($response->getBody(), true);
0 commit comments