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.
1 parent 81fcf4e commit 7f3cf65Copy full SHA for 7f3cf65
src/React/Decoder.php
@@ -112,7 +112,8 @@ public function handleData($input)
112
}
113
114
if (isset($data['method'])) {
115
- if (isset($data['id'])) {
+ // If the ID field is contained in the request even if NULL then we consider it to be Request
116
+ if (isset($data['id']) || array_key_exists('id', $data)) {
117
$jsonrpc = new Request($data['method'], $data['params'] ?? [], $data['id']);
118
} else {
119
$jsonrpc = new Notification($data['method'], $data['params']);
0 commit comments