@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * @return mixed|resource |
|
149 | + * @return resource|null |
|
150 | 150 | * @throws \InvalidArgumentException |
151 | 151 | */ |
152 | 152 | private function getStreamContext() |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * Sends message to opened socket connection client->server |
247 | 247 | * |
248 | - * @param $payload |
|
248 | + * @param string $payload |
|
249 | 249 | * @param string $opcode |
250 | 250 | * @throws \InvalidArgumentException |
251 | 251 | * @throws BadOpcodeException |
@@ -285,10 +285,10 @@ discard block |
||
285 | 285 | } |
286 | 286 | |
287 | 287 | /** |
288 | - * @param $final |
|
289 | - * @param $payload |
|
290 | - * @param $opcode |
|
291 | - * @param $masked |
|
288 | + * @param boolean $final |
|
289 | + * @param string $payload |
|
290 | + * @param string $opcode |
|
291 | + * @param boolean $masked |
|
292 | 292 | * @throws ConnectionException |
293 | 293 | * @throws \Exception |
294 | 294 | */ |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | * |
496 | 496 | * @param integer $status http://tools.ietf.org/html/rfc6455#section-7.4 |
497 | 497 | * @param string $message A closing message, max 125 bytes. |
498 | - * @return bool|null|string |
|
498 | + * @return null|string |
|
499 | 499 | * @throws BadOpcodeException |
500 | 500 | */ |
501 | 501 | public function close(int $status = 1000, string $message = 'ttfn') |