From f0069828cfe46ed71a28a324dcf9762572bfc28d Mon Sep 17 00:00:00 2001 From: ranjanrak Date: Thu, 14 Aug 2025 16:49:44 +0530 Subject: [PATCH] chore: use kiteVersion property consistently for X-Kite-Version headers --- src/KiteConnect.php | 2 +- tests/KiteTickerTest.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/KiteConnect.php b/src/KiteConnect.php index 4c19f95..3263055 100644 --- a/src/KiteConnect.php +++ b/src/KiteConnect.php @@ -1491,7 +1491,7 @@ private function request(string $route, string $method, array $params, string $h $request_headers = [ "Content-Type" => $content_type, "User-Agent" => "phpkiteconnect/" . self::VERSION, - "X-Kite-Version" => 3, + "X-Kite-Version" => $this->kiteVersion, ]; if ($this->apiKey && $this->accessToken) { diff --git a/tests/KiteTickerTest.php b/tests/KiteTickerTest.php index 063bdd5..29b62a6 100644 --- a/tests/KiteTickerTest.php +++ b/tests/KiteTickerTest.php @@ -17,7 +17,7 @@ public function setUp(): void } /** - * Test LTP mode tick data - matches TypeScript ltpModeTick test + * Test LTP mode tick data */ public function testLtpModeTick() { @@ -35,7 +35,7 @@ public function testLtpModeTick() } /** - * Test Quote mode tick data - matches TypeScript quoteModeTick test + * Test Quote mode tick data */ public function testQuoteModeTick() { @@ -54,7 +54,7 @@ public function testQuoteModeTick() } /** - * Test Full mode tick data - matches TypeScript fullModeTick test + * Test Full mode tick data */ public function testFullModeTick() { @@ -73,7 +73,7 @@ public function testFullModeTick() } /** - * Read binary packets - matches TypeScript readBufferPacket function + * Read binary packets */ private function readBufferPacket(string $fileName): string { @@ -81,7 +81,7 @@ private function readBufferPacket(string $fileName): string } /** - * Convert buffer to binary buffer array - matches TypeScript toArrayBuffer function + * Convert buffer to binary buffer array */ private function toArrayBuffer(string $tickerMode): string {