Skip to content

Commit

Permalink
info message type assertion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Mar 11, 2024
1 parent bfd572b commit 44f9d2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 44f9d2b

Please sign in to comment.