Skip to content

Commit 596283e

Browse files
committed
Removes the check for the $length param.
1 parent 93cc5b7 commit 596283e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Stream.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ public function read($length)
163163
return fread($this->socket, $length);
164164
}
165165

166-
if ($this->getSize() < ($this->readed + $length)) {
167-
return fread($this->socket, $this->getSize() - $this->readed);
168-
}
169-
170166
if ($this->getSize() === $this->readed) {
171167
return '';
172168
}

0 commit comments

Comments
 (0)