From cc2aa0f8465208f95b8571c91dd82c4d01857dbd Mon Sep 17 00:00:00 2001 From: artem Date: Fri, 17 Aug 2018 15:55:49 +0200 Subject: [PATCH 1/2] Notes data for --- src/Nats/ServerInfo.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Nats/ServerInfo.php b/src/Nats/ServerInfo.php index 9d13465..cde4cf0 100644 --- a/src/Nats/ServerInfo.php +++ b/src/Nats/ServerInfo.php @@ -102,11 +102,12 @@ public function __construct($connectionResponse) $this->setPort($data['port']); $this->setVersion($data['version']); $this->setGoVersion($data['go']); - $this->setAuthRequired($data['auth_required']); - $this->setTLSRequired($data['tls_required']); - $this->setTLSVerify($data['tls_verify']); - $this->setMaxPayload($data['max_payload']); + // TODO + if(isset($data['auth_required'])){ $this->setAuthRequired($data['auth_required']); } + if(isset($data['tls_required'])){ $this->setTLSRequired($data['tls_required']); } + if(isset($data['tls_verify'])){ $this->setTLSVerify($data['tls_verify']); } + $this->setMaxPayload($data['max_payload']); if (version_compare($data['version'], '1.1.0') === -1) { $this->setSSLRequired($data['ssl_required']); } From 9556876ac39ceb1928d4f68d2c423a00a7f33755 Mon Sep 17 00:00:00 2001 From: artem Date: Fri, 17 Aug 2018 16:01:44 +0200 Subject: [PATCH 2/2] Notes data for --- src/Nats/ServerInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nats/ServerInfo.php b/src/Nats/ServerInfo.php index cde4cf0..d6a0048 100644 --- a/src/Nats/ServerInfo.php +++ b/src/Nats/ServerInfo.php @@ -102,7 +102,7 @@ public function __construct($connectionResponse) $this->setPort($data['port']); $this->setVersion($data['version']); $this->setGoVersion($data['go']); - // TODO + // TODO if(isset($data['auth_required'])){ $this->setAuthRequired($data['auth_required']); } if(isset($data['tls_required'])){ $this->setTLSRequired($data['tls_required']); } if(isset($data['tls_verify'])){ $this->setTLSVerify($data['tls_verify']); }