From b5b661c569ef70943df00596b276f068e2c33bed Mon Sep 17 00:00:00 2001 From: Marc Morera Date: Wed, 20 Nov 2019 19:26:37 +0100 Subject: [PATCH] Fix stream_set_blocking parameter type To be strict, the second parameter of this function is a `bool` instead of an `int`. --- src/TcpServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TcpServer.php b/src/TcpServer.php index 2c0a689e..4b54a815 100644 --- a/src/TcpServer.php +++ b/src/TcpServer.php @@ -163,7 +163,7 @@ public function __construct($uri, LoopInterface $loop, array $context = array()) if (false === $this->master) { throw new \RuntimeException('Failed to listen on "' . $uri . '": ' . $errstr, $errno); } - \stream_set_blocking($this->master, 0); + \stream_set_blocking($this->master, false); $this->resume(); }