From 44f9d2b6acdf36adddece5fb98e1058be230a9f9 Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Mon, 11 Mar 2024 20:14:32 +0300 Subject: [PATCH] info message type assertion fix --- src/Connection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Connection.php b/src/Connection.php index 8853721..7812fd3 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -180,6 +180,8 @@ protected function init() } $this->infoMessage = $this->getMessage($config->timeout); + assert($this->infoMessage instanceof Info); + if (isset($this->infoMessage->nonce) && $this->authenticator) { $this->connectMessage->sig = $this->authenticator->sign($this->infoMessage->nonce); $this->connectMessage->nkey = $this->authenticator->getPublicKey();