Separate CommandReader impl from CommandReaderThread

This commit is contained in:
Dylan K. Taylor
2021-05-29 23:41:11 +01:00
parent 4bcc7e09cb
commit 0402e7e697
6 changed files with 110 additions and 133 deletions

View File

@ -6,7 +6,7 @@ parameters:
path: ../../../src/CrashDump.php
-
message: "#^Instanceof between pocketmine\\\\command\\\\CommandReader and pocketmine\\\\command\\\\CommandReader will always evaluate to true\\.$#"
message: "#^Instanceof between pocketmine\\\\command\\\\CommandReaderThread and pocketmine\\\\command\\\\CommandReaderThread will always evaluate to true\\.$#"
count: 1
path: ../../../src/Server.php

View File

@ -37,7 +37,7 @@ parameters:
-
message: "#^Cannot cast mixed to string\\.$#"
count: 1
count: 2
path: ../../../src/Server.php
-
@ -80,11 +80,6 @@ parameters:
count: 2
path: ../../../src/VersionInfo.php
-
message: "#^Cannot cast mixed to string\\.$#"
count: 1
path: ../../../src/command/CommandReader.php
-
message: "#^Part \\$host \\(mixed\\) of encapsed string cannot be cast to string\\.$#"
count: 1

View File

@ -436,17 +436,7 @@ parameters:
path: ../../../src/block/tile/TileFactory.php
-
message: "#^Cannot access offset 'mode' on array\\(0 \\=\\> int, 1 \\=\\> int, 2 \\=\\> int, 3 \\=\\> int, 4 \\=\\> int, 5 \\=\\> int, 6 \\=\\> int, 7 \\=\\> int, \\.\\.\\.\\)\\|false\\.$#"
count: 1
path: ../../../src/command/CommandReader.php
-
message: "#^Parameter \\#1 \\$stream of method pocketmine\\\\command\\\\CommandReader\\:\\:isPipe\\(\\) expects resource, resource\\|false given\\.$#"
count: 1
path: ../../../src/command/CommandReader.php
-
message: "#^Static property pocketmine\\\\command\\\\CommandReader\\:\\:\\$stdin \\(resource\\) does not accept resource\\|false\\.$#"
message: "#^Property pocketmine\\\\command\\\\CommandReader\\:\\:\\$stdin \\(resource\\) does not accept resource\\|false\\.$#"
count: 1
path: ../../../src/command/CommandReader.php