@@ -154,6 +154,7 @@ |
||
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | 156 | * @param mixed ...$args |
| 157 | + * @param integer $args |
|
| 157 | 158 | */ |
| 158 | 159 | public function call(string $funcName, ...$args) : array |
| 159 | 160 | { |
@@ -33,6 +33,7 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * @param Handler $handler |
| 35 | 35 | * @param non-empty-array<int, Middleware> $middlewares |
| 36 | + * @param Middleware[] $middlewares |
|
| 36 | 37 | */ |
| 37 | 38 | private function __construct($handler, $middlewares) |
| 38 | 39 | { |
@@ -30,6 +30,10 @@ |
||
| 30 | 30 | /** @var BufferUnpacker */ |
| 31 | 31 | private $unpacker; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param Packer $packer |
|
| 35 | + * @param BufferUnpacker $unpacker |
|
| 36 | + */ |
|
| 33 | 37 | public function __construct(?Packer $packer = null, ?BufferUnpacker $unpacker = null) |
| 34 | 38 | { |
| 35 | 39 | $this->packer = $packer ?: new Packer(PackOptions::FORCE_STR); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * @psalm-param non-empty-array<int, mixed> $key |
| 92 | - * @param int|string $index |
|
| 92 | + * @param integer $index |
|
| 93 | 93 | */ |
| 94 | 94 | public function update(array $key, Operations $operations, $index = 0) : array |
| 95 | 95 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @psalm-param non-empty-array<int, mixed> $key |
| 117 | - * @param int|string $index |
|
| 117 | + * @param integer $index |
|
| 118 | 118 | */ |
| 119 | 119 | public function delete(array $key, $index = 0) : array |
| 120 | 120 | { |
@@ -104,6 +104,9 @@ |
||
| 104 | 104 | return $connection; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @return resource |
|
| 109 | + */ |
|
| 107 | 110 | final public static function getRawStream(StreamConnection $connection) |
| 108 | 111 | { |
| 109 | 112 | $prop = (new \ReflectionObject($connection))->getProperty('stream'); |