| @@ -57,7 +57,7 @@ | ||
| 57 | 57 | |
| 58 | 58 | /** | 
| 59 | 59 | * @param string $name | 
| 60 | - * @param mixed $value | |
| 60 | + * @param string $value | |
| 61 | 61 | * @return self | 
| 62 | 62 | */ | 
| 63 | 63 | public function add(string $name, $value) | 
| @@ -140,7 +140,7 @@ | ||
| 140 | 140 | /** | 
| 141 | 141 | * It also run checks on data. | 
| 142 | 142 | * | 
| 143 | - * @param string|int $rawData Probably more likely a string than an int, but well... why not. | |
| 143 | + * @param string $rawData Probably more likely a string than an int, but well... why not. | |
| 144 | 144 | * @return self | 
| 145 | 145 | * @throws IncompleteFrameException | 
| 146 | 146 | */ | 
| @@ -47,7 +47,7 @@ | ||
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** | 
| 50 | - * @param \Exception|string $error | |
| 50 | + * @param \Exception $error | |
| 51 | 51 | */ | 
| 52 | 52 | private function onError($error) | 
| 53 | 53 |      {
 | 
| @@ -12,18 +12,18 @@ | ||
| 12 | 12 | namespace Nekland\Woketo\Client; | 
| 13 | 13 | |
| 14 | 14 | |
| 15 | -use Nekland\Woketo\Core\AbstractConnection; | |
| 16 | -use Nekland\Woketo\Exception\Http\IncompleteHttpMessageException; | |
| 17 | -use Nekland\Woketo\Exception\RuntimeException; | |
| 18 | -use Nekland\Woketo\Exception\WebsocketException; | |
| 19 | -use Nekland\Woketo\Http\Response; | |
| 20 | -use Nekland\Woketo\Http\Url; | |
| 21 | -use Nekland\Woketo\Message\MessageHandlerInterface; | |
| 22 | -use Nekland\Woketo\Rfc6455\Frame; | |
| 23 | -use Nekland\Woketo\Rfc6455\Handshake\ClientHandshake; | |
| 24 | -use Nekland\Woketo\Rfc6455\MessageProcessor; | |
| 25 | -use React\EventLoop\LoopInterface; | |
| 26 | -use React\Promise\PromiseInterface; | |
| 15 | +use Nekland\Woketo\Core\AbstractConnection; | |
| 16 | +use Nekland\Woketo\Exception\Http\IncompleteHttpMessageException; | |
| 17 | +use Nekland\Woketo\Exception\RuntimeException; | |
| 18 | +use Nekland\Woketo\Exception\WebsocketException; | |
| 19 | +use Nekland\Woketo\Http\Response; | |
| 20 | +use Nekland\Woketo\Http\Url; | |
| 21 | +use Nekland\Woketo\Message\MessageHandlerInterface; | |
| 22 | +use Nekland\Woketo\Rfc6455\Frame; | |
| 23 | +use Nekland\Woketo\Rfc6455\Handshake\ClientHandshake; | |
| 24 | +use Nekland\Woketo\Rfc6455\MessageProcessor; | |
| 25 | +use React\EventLoop\LoopInterface; | |
| 26 | +use React\Promise\PromiseInterface; | |
| 27 | 27 | use React\Stream\Stream; | 
| 28 | 28 | |
| 29 | 29 | class Connection extends AbstractConnection | 
| @@ -11,18 +11,18 @@ | ||
| 11 | 11 | |
| 12 | 12 | namespace Nekland\Woketo\Core; | 
| 13 | 13 | |
| 14 | -use Nekland\Woketo\Exception\NoHandlerException; | |
| 15 | -use Nekland\Woketo\Exception\WebsocketException; | |
| 16 | -use Nekland\Woketo\Message\MessageHandlerInterface; | |
| 17 | -use Nekland\Woketo\Rfc6455\Frame; | |
| 18 | -use Nekland\Woketo\Rfc6455\Handshake\HandshakeInterface; | |
| 19 | -use Nekland\Woketo\Rfc6455\Message; | |
| 20 | -use Nekland\Woketo\Rfc6455\MessageProcessor; | |
| 21 | -use Nekland\Woketo\Utils\SimpleLogger; | |
| 22 | -use Psr\Log\LoggerAwareTrait; | |
| 23 | -use Psr\Log\LoggerInterface; | |
| 24 | -use React\EventLoop\LoopInterface; | |
| 25 | -use React\EventLoop\Timer\TimerInterface; | |
| 14 | +use Nekland\Woketo\Exception\NoHandlerException; | |
| 15 | +use Nekland\Woketo\Exception\WebsocketException; | |
| 16 | +use Nekland\Woketo\Message\MessageHandlerInterface; | |
| 17 | +use Nekland\Woketo\Rfc6455\Frame; | |
| 18 | +use Nekland\Woketo\Rfc6455\Handshake\HandshakeInterface; | |
| 19 | +use Nekland\Woketo\Rfc6455\Message; | |
| 20 | +use Nekland\Woketo\Rfc6455\MessageProcessor; | |
| 21 | +use Nekland\Woketo\Utils\SimpleLogger; | |
| 22 | +use Psr\Log\LoggerAwareTrait; | |
| 23 | +use Psr\Log\LoggerInterface; | |
| 24 | +use React\EventLoop\LoopInterface; | |
| 25 | +use React\EventLoop\Timer\TimerInterface; | |
| 26 | 26 | use React\Socket\Connection; | 
| 27 | 27 | |
| 28 | 28 | abstract class AbstractConnection | 
| @@ -24,7 +24,6 @@ | ||
| 24 | 24 | use Nekland\Woketo\Rfc6455\MessageProcessor; | 
| 25 | 25 | use Nekland\Woketo\Utils\SimpleLogger; | 
| 26 | 26 | use Psr\Log\LoggerInterface; | 
| 27 | -use Psr\Log\LogLevel; | |
| 28 | 27 | use React\EventLoop\LoopInterface; | 
| 29 | 28 | use React\Socket\ConnectionInterface; | 
| 30 | 29 | use React\Socket\ServerInterface; | 
| @@ -144,7 +144,7 @@ | ||
| 144 | 144 | } | 
| 145 | 145 | |
| 146 | 146 | /** | 
| 147 | - * @param string|int $frame | |
| 147 | + * @param string $frame | |
| 148 | 148 | * @param int $from Byte where to start (should be inferior to $to). | 
| 149 | 149 | * @param int $to Byte where to stop (considering it starts at 0). The `to` value include the target | 
| 150 | 150 | * byte. |