Skip to content

Commit 83d7427

Browse files
gdejongGijs de Jong
authored andcommitted
Update docblock for Process::$pipes
Found this when running Psalm in a project of mine that is using reactphp/child-process. ``` Possibly undesired iteration over regular object React\Stream\ReadableStreamInterface ``` for the code: ``` foreach ($this->process->pipes as $pipe) { ``` The docblock now better reflects the fact that `$pipes` is an array of either `ReadableStreamInterface` or `WritableStreamInterface`.
1 parent b7c493d commit 83d7427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Process extends EventEmitter
7979
* - 1: STDOUT (`ReadableStreamInterface`)
8080
* - 2: STDERR (`ReadableStreamInterface`)
8181
*
82-
* @var ReadableStreamInterface|WritableStreamInterface
82+
* @var array<ReadableStreamInterface|WritableStreamInterface>
8383
*/
8484
public $pipes = array();
8585

0 commit comments

Comments
 (0)