@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * @link https://php.net/socket_get_option |
155 | 155 | * |
156 | 156 | * @param int $option `SO_*` option constant. |
157 | - * @return mixed The option's value. This is never `false`. |
|
157 | + * @return integer The option's value. This is never `false`. |
|
158 | 158 | * @throws SocketError |
159 | 159 | */ |
160 | 160 | public function getOption (int $option) { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * @see await() |
223 | 223 | * |
224 | 224 | * @param int $channel `SocketInterface` channel constant. |
225 | - * @param float|null $timeout Maximum seconds to block. `NULL` blocks forever. Defaults to a poll. |
|
225 | + * @param integer $timeout Maximum seconds to block. `NULL` blocks forever. Defaults to a poll. |
|
226 | 226 | * @return bool |
227 | 227 | * @throws SocketError |
228 | 228 | */ |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * @link https://php.net/socket_create_pair |
24 | 24 | * |
25 | 25 | * @param array $extra Variadic constructor arguments. |
26 | - * @return static[] Two instances at indices `0` and `1`. |
|
26 | + * @return StreamClient[] Two instances at indices `0` and `1`. |
|
27 | 27 | * @throws SocketError |
28 | 28 | */ |
29 | 29 | public static function newUnixPair (...$extra) { |
@@ -93,7 +93,7 @@ |
||
93 | 93 | /** |
94 | 94 | * Constructs and yields all available frames from the peer. |
95 | 95 | * |
96 | - * @return Generator|Frame[] |
|
96 | + * @return Generator |
|
97 | 97 | */ |
98 | 98 | public function getFrames () { |
99 | 99 | $this->buffer .= $this->client->recvAll(); |