Player: fixed type of loadQueue field

This commit is contained in:
Dylan K. Taylor 2021-08-04 21:17:44 +01:00
parent 61b7faae08
commit b31dce2119
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 4 additions and 6 deletions

View File

@ -184,7 +184,10 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
* @phpstan-var array<int, UsedChunkStatus>
*/
protected array $usedChunks = [];
/** @var bool[] chunkHash => dummy */
/**
* @var true[] chunkHash => dummy
* @phpstan-var array<int, true>
*/
protected array $loadQueue = [];
protected int $nextChunkOrderRun = 5;

View File

@ -625,11 +625,6 @@ parameters:
count: 1
path: ../../../src/network/mcpe/protocol/types/inventory/UseItemTransactionData.php
-
message: "#^Array \\(array\\<int, pocketmine\\\\player\\\\UsedChunkStatus\\>\\) does not accept key \\(int\\|string\\)\\.$#"
count: 3
path: ../../../src/player/Player.php
-
message: "#^Method pocketmine\\\\resourcepacks\\\\ZippedResourcePack\\:\\:getPackChunk\\(\\) should return string but returns string\\|false\\.$#"
count: 1