From 5375844d989fde4d97812db745f3cb6010e6436b Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 2 Mar 2021 23:55:53 +0300 Subject: Client::parseMessage fix --- src/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 33228d1..1756c6c 100644 --- a/src/Client.php +++ b/src/Client.php @@ -201,7 +201,8 @@ class Client { throw new \Exception("Malformed REQUEST message: {$e->getMessage()}"); } - $message = new RequestMessage($data['no'], $data['type'], $data['data'] ?? null); + $message = new RequestMessage($data['type'], $data['data'] ?? null); + $message->setRequestNo($data['no']); if (isset($data['password'])) $message->setPassword($data['password']); -- cgit v1.2.3