Skip to content

Commit

Permalink
Bugfix optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Weikert committed Mar 31, 2022
1 parent 5aa661c commit 14bf7bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HttpAdapter/CurlOroHttpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ public function versionString(): ?string
/**
* @param string $response
* @param int $statusCode
* @param string $httpBody
* @param string|null $httpBody
* @return stdClass|null
* @throws ApiException
* @throws JsonException
*/
protected function parseResponseBody(string $response, int $statusCode, string $httpBody): ?stdClass
protected function parseResponseBody(string $response, int $statusCode, ?string $httpBody): ?stdClass
{
if (empty($response)) {
if ($statusCode === self::HTTP_NO_CONTENT) {
Expand Down

0 comments on commit 14bf7bf

Please sign in to comment.