Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 3a41e8e

Browse files
author
tomponline
committed
Revert "adds checks for optional fields in server response"
This reverts commit b1f925a.
1 parent 2c2128c commit 3a41e8e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Nats/ServerInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ public function __construct($connectionResponse)
102102
$this->setPort($data['port']);
103103
$this->setVersion($data['version']);
104104
$this->setGoVersion($data['go']);
105-
$this->setAuthRequired(isset($data['auth_required']) ? $data['auth_required'] : false);
106-
$this->setTLSRequired(isset($data['tls_required']) ? $data['tls_required'] : false);
107-
$this->setTLSVerify(isset($data['tls_verify']) ? $data['tls_verify'] : false);
105+
$this->setAuthRequired($data['auth_required']);
106+
$this->setTLSRequired($data['tls_required']);
107+
$this->setTLSVerify($data['tls_verify']);
108108
$this->setMaxPayload($data['max_payload']);
109109

110110
if (version_compare($data['version'], '1.1.0') === -1) {

0 commit comments

Comments
 (0)