We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11f1dcc commit d3bb072Copy full SHA for d3bb072
src/React/Decoder.php
@@ -118,7 +118,7 @@ public function handleData($input)
118
if (isset($data['id']) || array_key_exists('id', $data)) {
119
$jsonrpc = new Request($data['method'], $data['params'] ?? [], $data['id']);
120
} else {
121
- $jsonrpc = new Notification($data['method'], $data['params']);
+ $jsonrpc = new Notification($data['method'], $data['params'] ?? []);
122
}
123
} elseif (isset($data['result'])) {
124
$jsonrpc = new Response($data['id'], $data['result']);
0 commit comments