Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/ReadableStreamInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@ public function resume();
* Once the pipe is set up successfully, the destination stream MUST emit
* a `pipe` event with this source stream an event argument.
*
* @param WritableStreamInterface $dest
* @template T of WritableStreamInterface
* @param T $dest
* @param array $options
* @return WritableStreamInterface $dest stream as-is
* @return T $dest stream as-is
*/
public function pipe(WritableStreamInterface $dest, array $options = array());

Expand Down
5 changes: 3 additions & 2 deletions src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ final class Util
/**
* Pipes all the data from the given $source into the $dest
*
* @template T of WritableStreamInterface
* @param ReadableStreamInterface $source
* @param WritableStreamInterface $dest
* @param T $dest
* @param array $options
* @return WritableStreamInterface $dest stream as-is
* @return T $dest stream as-is
* @see ReadableStreamInterface::pipe() for more details
*/
public static function pipe(ReadableStreamInterface $source, WritableStreamInterface $dest, array $options = array())
Expand Down
Loading