CommandReader: define $w and $e to make PHPStan happy

This commit is contained in:
Dylan K. Taylor 2019-10-25 16:11:02 +01:00
parent a145e18c1e
commit 0d5d5e21a8

View File

@ -141,6 +141,7 @@ class CommandReader extends Thread{
case self::TYPE_STREAM:
//stream_select doesn't work on piped streams for some reason
$r = [self::$stdin];
$w = $e = null;
if(($count = stream_select($r, $w, $e, 0, 200000)) === 0){ //nothing changed in 200000 microseconds
return true;
}elseif($count === false){ //stream error