From 0d5d5e21a80e41bd0f15bbeff1386b42d05d5200 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 25 Oct 2019 16:11:02 +0100 Subject: [PATCH] CommandReader: define $w and $e to make PHPStan happy --- src/pocketmine/command/CommandReader.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pocketmine/command/CommandReader.php b/src/pocketmine/command/CommandReader.php index dfa66ba28..1aaa1721d 100644 --- a/src/pocketmine/command/CommandReader.php +++ b/src/pocketmine/command/CommandReader.php @@ -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