diff --git a/src/Client.php b/src/Client.php index 38154cc..a6f112a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -229,7 +229,7 @@ public function recv() $this->connect($this->getConnectData('clean_session') ?? true, $this->getConnectData('will') ?? []); } elseif ($response === false && $this->client->errCode !== SOCKET_ETIMEDOUT) { $this->handleException(); - } elseif (is_string($response) && strlen($response) != 0) { + } elseif (is_string($response) && strlen($response) !== 0) { $this->handleVerbose($response); if ($this->getConfig()->isMQTT5()) {