From ccef4bc4f0e97342063f2b26cd433cb6865895c0 Mon Sep 17 00:00:00 2001 From: rik43 Date: Sun, 15 Apr 2018 13:00:18 +0300 Subject: [PATCH] typo in var name (#394) --- src/Socket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)