Skip to content

Commit c4cfb95

Browse files
author
Ewan Valentine
committed
Should check for type as well
1 parent d1fc1da commit c4cfb95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nats/Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function wait($quantity = 0)
429429
if (strpos($line, 'MSG') === 0) {
430430
$count = $count + 1;
431431
$this->handleMSG($line);
432-
if (($quantity != 0) && ($count >= $quantity)) {
432+
if (($quantity !== 0) && ($count >= $quantity)) {
433433
return $this;
434434
}
435435
}

0 commit comments

Comments
 (0)