summaryrefslogtreecommitdiff
path: root/src/Client.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-02 23:55:53 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-02 23:55:53 +0300
commit5375844d989fde4d97812db745f3cb6010e6436b (patch)
treeb39fa44258e3cf2db7f976c77b2a30050f50ce1c /src/Client.php
parent6badf9a76bd2f71253c8235fc05fdd2ec1cf4d18 (diff)
Client::parseMessage fix
Diffstat (limited to 'src/Client.php')
-rw-r--r--src/Client.php3
1 files changed, 2 insertions, 1 deletions
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']);