|
45 | 45 | *
|
46 | 46 | * @param ReadableStreamInterface<string> $stream
|
47 | 47 | * @param ?int $maxLength Maximum number of bytes to buffer or null for unlimited.
|
48 |
| - * @return PromiseInterface<string,\RuntimeException> |
| 48 | + * @return PromiseInterface<string> |
49 | 49 | */
|
50 | 50 | function buffer(ReadableStreamInterface $stream, $maxLength = null)
|
51 | 51 | {
|
@@ -121,7 +121,7 @@ function buffer(ReadableStreamInterface $stream, $maxLength = null)
|
121 | 121 | *
|
122 | 122 | * @param ReadableStreamInterface|WritableStreamInterface $stream
|
123 | 123 | * @param string $event
|
124 |
| - * @return PromiseInterface<mixed,\RuntimeException> |
| 124 | + * @return PromiseInterface<mixed> |
125 | 125 | */
|
126 | 126 | function first(EventEmitterInterface $stream, $event = 'data')
|
127 | 127 | {
|
@@ -192,7 +192,7 @@ function first(EventEmitterInterface $stream, $event = 'data')
|
192 | 192 | *
|
193 | 193 | * @param ReadableStreamInterface|WritableStreamInterface $stream
|
194 | 194 | * @param string $event
|
195 |
| - * @return PromiseInterface<array,\RuntimeException> |
| 195 | + * @return PromiseInterface<array> |
196 | 196 | */
|
197 | 197 | function all(EventEmitterInterface $stream, $event = 'data')
|
198 | 198 | {
|
@@ -296,7 +296,7 @@ function all(EventEmitterInterface $stream, $event = 'data')
|
296 | 296 | * });
|
297 | 297 | * ```
|
298 | 298 | *
|
299 |
| - * @param PromiseInterface<ReadableStreamInterface<T>,\Exception> $promise |
| 299 | + * @param PromiseInterface<ReadableStreamInterface<T>> $promise |
300 | 300 | * @return ReadableStreamInterface<T>
|
301 | 301 | */
|
302 | 302 | function unwrapReadable(PromiseInterface $promise)
|
@@ -361,7 +361,7 @@ function unwrapReadable(PromiseInterface $promise)
|
361 | 361 | * });
|
362 | 362 | * ```
|
363 | 363 | *
|
364 |
| - * @param PromiseInterface<WritableStreamInterface<T>,\Exception> $promise |
| 364 | + * @param PromiseInterface<WritableStreamInterface<T>> $promise |
365 | 365 | * @return WritableStreamInterface<T>
|
366 | 366 | */
|
367 | 367 | function unwrapWritable(PromiseInterface $promise)
|
|
0 commit comments