Skip to content

Commit

Permalink
fix #653
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervanhooft committed Dec 15, 2022
1 parent 9ffd944 commit b3d8b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MollieLaravelHttpClientAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MollieLaravelHttpClientAdapter implements MollieHttpAdapterInterface
{
private const HTTP_NO_CONTENT = 204;

public function send($httpMethod, $url, $headers, $httpBody): object
public function send($httpMethod, $url, $headers, $httpBody): ?object
{
$contentType = $headers['Content-Type'] ?? 'application/json';
unset($headers['Content-Type']);
Expand All @@ -23,7 +23,7 @@ public function send($httpMethod, $url, $headers, $httpBody): object
return $this->parseResponseBody($response);
}

private function parseResponseBody(Response $response)
private function parseResponseBody(Response $response): ?object
{
$body = $response->body();
if (empty($body)) {
Expand Down

0 comments on commit b3d8b64

Please sign in to comment.