@@ -98,9 +98,9 @@ discard block |
||
98 | 98 | private $cachedEndpoint = []; |
99 | 99 | |
100 | 100 | /** |
101 | - * @param string|resource $endpointOrResource |
|
101 | + * @param resource $endpointOrResource |
|
102 | 102 | * @param LoopInterface $loop |
103 | - * @param mixed[] $config |
|
103 | + * @param string[] $config |
|
104 | 104 | * @throws InstantiationException |
105 | 105 | */ |
106 | 106 | public function __construct($endpointOrResource, LoopInterface $loop, $config = []) |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | /** |
480 | 480 | * Configure config variable. |
481 | 481 | * |
482 | - * @param $configKey |
|
482 | + * @param string $configKey |
|
483 | 483 | */ |
484 | 484 | private function configureVariable($configKey) |
485 | 485 | { |
@@ -347,9 +347,11 @@ discard block |
||
347 | 347 | } |
348 | 348 | } |
349 | 349 | catch (Error $ex) |
350 | - {} |
|
350 | + { |
|
351 | +} |
|
351 | 352 | catch (Exception $ex) |
352 | - {} |
|
353 | + { |
|
354 | +} |
|
353 | 355 | |
354 | 356 | if ($ex !== null) |
355 | 357 | { |
@@ -383,9 +385,11 @@ discard block |
||
383 | 385 | } |
384 | 386 | } |
385 | 387 | catch (Error $ex) |
386 | - {} |
|
388 | + { |
|
389 | +} |
|
387 | 390 | catch (Exception $ex) |
388 | - {} |
|
391 | + { |
|
392 | +} |
|
389 | 393 | |
390 | 394 | if ($ex !== null) |
391 | 395 | { |
@@ -407,9 +411,11 @@ discard block |
||
407 | 411 | parent::handleWrite(); |
408 | 412 | } |
409 | 413 | catch (Error $ex) |
410 | - {} |
|
414 | + { |
|
415 | +} |
|
411 | 416 | catch (Exception $ex) |
412 | - {} |
|
417 | + { |
|
418 | +} |
|
413 | 419 | |
414 | 420 | if ($ex !== null) |
415 | 421 | { |
@@ -539,7 +539,7 @@ |
||
539 | 539 | /** |
540 | 540 | * Configure static key |
541 | 541 | * |
542 | - * @param $configKey |
|
542 | + * @param string $configKey |
|
543 | 543 | */ |
544 | 544 | private function configureVariable($configKey) |
545 | 545 | { |
@@ -477,9 +477,11 @@ |
||
477 | 477 | $this->emit('connect', [ $this, $client ]); |
478 | 478 | } |
479 | 479 | catch (Error $ex) |
480 | - {} |
|
480 | + { |
|
481 | +} |
|
481 | 482 | catch (Exception $ex) |
482 | - {} |
|
483 | + { |
|
484 | +} |
|
483 | 485 | |
484 | 486 | if ($ex !== null) |
485 | 487 | { |