diff --git a/src/Socket.php b/src/Socket.php index 909f6c9c..0f34ab2d 100644 --- a/src/Socket.php +++ b/src/Socket.php @@ -266,7 +266,7 @@ if (!extension_loaded('pthreads')) { public function write(string $buffer, int $length = -1) { - return $length === -1 ? socket_write($this->sock, $buffer) : socket_write($this->sock, $buffer, $Length); + return $length === -1 ? socket_write($this->sock, $buffer) : socket_write($this->sock, $buffer, $length); } public function send(string $data, int $length, int $flags)