diff --git a/src/pocketmine/level/format/io/ChunkUtils.php b/src/pocketmine/level/format/io/ChunkUtils.php index 8eaf4d865..3645b9b53 100644 --- a/src/pocketmine/level/format/io/ChunkUtils.php +++ b/src/pocketmine/level/format/io/ChunkUtils.php @@ -98,6 +98,7 @@ if(!extension_loaded('pocketmine_chunkutils')){ * Converts pre-MCPE-1.0 biome color array to biome ID array. * * @param int[] $array of biome color values + * @phpstan-param array $array */ public static function convertBiomeColors(array $array) : string{ $result = str_repeat("\x00", 256); diff --git a/tests/phpstan/configs/l7-baseline.neon b/tests/phpstan/configs/l7-baseline.neon index 703cec134..31ebd6999 100644 --- a/tests/phpstan/configs/l7-baseline.neon +++ b/tests/phpstan/configs/l7-baseline.neon @@ -725,11 +725,6 @@ parameters: count: 1 path: ../../../src/pocketmine/level/format/Chunk.php - - - message: "#^Method pocketmine\\\\level\\\\format\\\\io\\\\ChunkUtils\\:\\:convertBiomeColors\\(\\) should return string but returns array\\\\|string\\.$#" - count: 1 - path: ../../../src/pocketmine/level/format/io/ChunkUtils.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#" count: 2