From 15bcd48e5ab39964b794b3646856a36d63b84927 Mon Sep 17 00:00:00 2001 From: sixlive Date: Mon, 2 Jun 2025 13:18:59 -0400 Subject: [PATCH] fix: response validation --- src/Transport/HttpTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transport/HttpTransport.php b/src/Transport/HttpTransport.php index a89d6f3..0409802 100644 --- a/src/Transport/HttpTransport.php +++ b/src/Transport/HttpTransport.php @@ -140,7 +140,7 @@ protected function validateJsonRpcResponse(array $jsonResponse): void if (! isset($jsonResponse['jsonrpc']) || $jsonResponse['jsonrpc'] !== '2.0' || ! isset($jsonResponse['id']) || - $jsonResponse['id'] !== (string) $this->requestId + (string) $jsonResponse['id'] !== (string) $this->requestId ) { throw new TransportException( 'Invalid JSON-RPC 2.0 response received'