Skip to content

Commit 2f3546b

Browse files
authored
chore: declare the return type of the ReadableStreamInterface::pipe() method via @template.
1 parent f48623b commit 2f3546b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ReadableStreamInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ public function resume(): void;
318318
* Once the pipe is set up successfully, the destination stream MUST emit
319319
* a `pipe` event with this source stream an event argument.
320320
*
321-
* @param WritableStreamInterface $dest
321+
* @template T of WritableStreamInterface
322+
* @param T $dest
322323
* @param array{end?:bool} $options
323-
* @return WritableStreamInterface $dest stream as-is
324+
* @return T $dest stream as-is
324325
*/
325326
public function pipe(WritableStreamInterface $dest, array $options = []): WritableStreamInterface;
326327

0 commit comments

Comments
 (0)