@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * @see https://php.net/socket_get_option |
152 | 152 | * |
153 | 153 | * @param int $option `SO_*` option constant. |
154 | - * @return mixed The option's value. This is never `false`. |
|
154 | + * @return integer The option's value. This is never `false`. |
|
155 | 155 | * @throws SocketError |
156 | 156 | */ |
157 | 157 | public function getOption (int $option) { |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | * @see await() |
214 | 214 | * |
215 | 215 | * @param int $channel `SocketInterface` channel constant. |
216 | - * @param float|null $timeout Maximum seconds to block. `NULL` blocks forever. Defaults to a poll. |
|
216 | + * @param integer $timeout Maximum seconds to block. `NULL` blocks forever. Defaults to a poll. |
|
217 | 217 | * @return bool |
218 | 218 | * @throws SocketError |
219 | 219 | */ |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * @see https://php.net/socket_create_pair |
23 | 23 | * |
24 | 24 | * @param array $extra Variadic constructor arguments. |
25 | - * @return static[] Two instances at indices `0` and `1`. |
|
25 | + * @return StreamClient[] Two instances at indices `0` and `1`. |
|
26 | 26 | * @throws SocketError |
27 | 27 | */ |
28 | 28 | public static function newUnixPair (...$extra) { |