Skip to content

Commit 24dccfd

Browse files
committed
JSONRPC_VERSION constant now in RpcMessageInterface
1 parent 663877e commit 24dccfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/React/Decoder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace EdgeTelemetrics\JSON_RPC\React;
44

5+
use EdgeTelemetrics\JSON_RPC\RpcMessageInterface;
56
use Evenement\EventEmitter;
67
use React\Stream\ReadableStreamInterface;
78
use React\Stream\WritableStreamInterface;
@@ -108,7 +109,7 @@ public function handleData($input)
108109
throw new RuntimeException('Unable to decode. Missing required jsonrpc field');
109110
}
110111

111-
if ($data['jsonrpc'] != Notification::JSONRPC_VERSION) {
112+
if ($data['jsonrpc'] != RpcMessageInterface::JSONRPC_VERSION) {
112113
throw new RuntimeException('Unknown JSON-RPC version string');
113114
}
114115

0 commit comments

Comments
 (0)