mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
CommandReader: define $w and $e to make PHPStan happy
This commit is contained in:
parent
a145e18c1e
commit
0d5d5e21a8
@ -141,6 +141,7 @@ class CommandReader extends Thread{
|
|||||||
case self::TYPE_STREAM:
|
case self::TYPE_STREAM:
|
||||||
//stream_select doesn't work on piped streams for some reason
|
//stream_select doesn't work on piped streams for some reason
|
||||||
$r = [self::$stdin];
|
$r = [self::$stdin];
|
||||||
|
$w = $e = null;
|
||||||
if(($count = stream_select($r, $w, $e, 0, 200000)) === 0){ //nothing changed in 200000 microseconds
|
if(($count = stream_select($r, $w, $e, 0, 200000)) === 0){ //nothing changed in 200000 microseconds
|
||||||
return true;
|
return true;
|
||||||
}elseif($count === false){ //stream error
|
}elseif($count === false){ //stream error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user