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

Commit 71bd3d2

Browse files
committed
len is integer
1 parent 45c7074 commit 71bd3d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Nats/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ private function send($payload)
192192
*
193193
* @return string
194194
*/
195-
private function receive($len = null)
195+
private function receive($len = 0)
196196
{
197-
if ($len === true) {
197+
if ($len > 0) {
198198
$chunkSize = $this->chunkSize;
199199
$line = null;
200200
$receivedBytes = 0;

0 commit comments

Comments
 (0)