diff --git a/src/App/Creator/ResponseCreator.php b/src/App/Creator/ResponseCreator.php index c8a6907f..a955610b 100644 --- a/src/App/Creator/ResponseCreator.php +++ b/src/App/Creator/ResponseCreator.php @@ -26,7 +26,7 @@ public function createEmptyResponse(JsonRpcRequest $fromRequest = null) : JsonRp ->setIsNotification($fromRequest->isNotification()) ; - if ($fromRequest->getId()) { + if (!is_null($fromRequest->getId())) { $response->setId($fromRequest->getId()); }