8000 Fix stream_set_blocking parameter type · reactphp/socket@b5b661c · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit b5b661c

Browse files
authored
Fix stream_set_blocking parameter type
To be strict, the second parameter of this function is a `bool` instead of an `int`.
1 parent 420e02b commit b5b661c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TcpServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function __construct($uri, LoopInterface $loop, array $context = array())
163163
if (false === $this->master) {
164164
throw new \RuntimeException('Failed to listen on "' . $uri . '": ' . $errstr, $errno);
165165
}
166-
\stream_set_blocking($this->master, 0);
166+
\stream_set_blocking($this->master, false);
167167

168168
$this->resume();
169169
}

0 commit comments

Comments
 (0)
0