Skip to content

Commit add4ce9

Browse files
authored
fix: response validation (#9)
1 parent adf2c79 commit add4ce9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Transport/HttpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function validateJsonRpcResponse(array $jsonResponse): void
140140
if (! isset($jsonResponse['jsonrpc']) ||
141141
$jsonResponse['jsonrpc'] !== '2.0' ||
142142
! isset($jsonResponse['id']) ||
143-
$jsonResponse['id'] !== (string) $this->requestId
143+
(string) $jsonResponse['id'] !== (string) $this->requestId
144144
) {
145145
throw new TransportException(
146146
'Invalid JSON-RPC 2.0 response received'

0 commit comments

Comments
 (0)