Skip to content

Commit

Permalink
Fix static code analysis error
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Mar 3, 2022
1 parent 3eb5784 commit 7c63ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 7c63ef0

Please sign in to comment.