Skip to content

Commit

Permalink
fix null response from disconnected worker. (ijson 0.4.9)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewPattell committed May 25, 2020
1 parent 1cacbfd commit e875a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kakadu-dev/php-ijson-microservices",
"version": "1.1.1",
"version": "1.1.2",
"description": "Package for create microservice architecture based on PHP.",
"homepage": "https://github.com/kakadu-dev/php-ijson-microservices",
"type": "library",
Expand Down
2 changes: 1 addition & 1 deletion src/Microservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function sendServiceRequest(string $service, string $method, $data, bool
throw new MicroserviceException($response['error']['message'] ?? 'Unknown error.');
}

return new MjResponse($response);
return new MjResponse($response ?? []);
} catch (BadResponseException $exception) {
$errMessage = $exception->getMessage();
$errStatus = 4;
Expand Down

0 comments on commit e875a1b

Please sign in to comment.