From b0b1b29de4d4cbf60ca54d9043f01c9b2b21f136 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 15 Jun 2020 23:07:35 +0100 Subject: [PATCH] Chunk: specify list for heightMap --- src/pocketmine/level/format/Chunk.php | 1 + tests/phpstan/configs/l7-baseline.neon | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pocketmine/level/format/Chunk.php b/src/pocketmine/level/format/Chunk.php index 3ad1980ce..8134af9d0 100644 --- a/src/pocketmine/level/format/Chunk.php +++ b/src/pocketmine/level/format/Chunk.php @@ -109,6 +109,7 @@ class Chunk{ * @param CompoundTag[] $entities * @param CompoundTag[] $tiles * @param int[] $heightMap + * @phpstan-param list $heightMap */ public function __construct(int $chunkX, int $chunkZ, array $subChunks = [], array $entities = [], array $tiles = [], string $biomeIds = "", array $heightMap = []){ $this->x = $chunkX; diff --git a/tests/phpstan/configs/l7-baseline.neon b/tests/phpstan/configs/l7-baseline.neon index 31ebd6999..2cfd4d4aa 100644 --- a/tests/phpstan/configs/l7-baseline.neon +++ b/tests/phpstan/configs/l7-baseline.neon @@ -720,11 +720,6 @@ parameters: count: 1 path: ../../../src/pocketmine/level/Level.php - - - message: "#^Parameter \\#1 \\$data of static method SplFixedArray\\\\:\\:fromArray\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../../../src/pocketmine/level/format/Chunk.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#" count: 2