Chunk: specify list<int> for heightMap

This commit is contained in:
Dylan K. Taylor 2020-06-15 23:07:35 +01:00
parent 1c3b641e37
commit b0b1b29de4
2 changed files with 1 additions and 5 deletions

View File

@ -109,6 +109,7 @@ class Chunk{
* @param CompoundTag[] $entities
* @param CompoundTag[] $tiles
* @param int[] $heightMap
* @phpstan-param list<int> $heightMap
*/
public function __construct(int $chunkX, int $chunkZ, array $subChunks = [], array $entities = [], array $tiles = [], string $biomeIds = "", array $heightMap = []){
$this->x = $chunkX;

View File

@ -720,11 +720,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/level/Level.php
-
message: "#^Parameter \\#1 \\$data of static method SplFixedArray\\<mixed\\>\\:\\:fromArray\\(\\) expects array\\<int, int\\>, array\\<int\\> given\\.$#"
count: 1
path: ../../../src/pocketmine/level/format/Chunk.php
-
message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#"
count: 2