diff --git a/src/world/format/io/ChunkUtils.php b/src/world/format/io/ChunkUtils.php index 9c8ab9893b..9e12ea8332 100644 --- a/src/world/format/io/ChunkUtils.php +++ b/src/world/format/io/ChunkUtils.php @@ -32,6 +32,7 @@ class 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 1d56afcfa5..ec3ff969a8 100644 --- a/tests/phpstan/configs/l7-baseline.neon +++ b/tests/phpstan/configs/l7-baseline.neon @@ -1020,11 +1020,6 @@ parameters: count: 2 path: ../../../src/world/format/Chunk.php - - - message: "#^Method pocketmine\\\\world\\\\format\\\\io\\\\ChunkUtils\\:\\:convertBiomeColors\\(\\) should return string but returns array\\\\|string\\.$#" - count: 1 - path: ../../../src/world/format/io/ChunkUtils.php - - message: "#^Parameter \\#1 \\$className of static method pocketmine\\\\utils\\\\Utils\\:\\:testValidInstance\\(\\) expects class\\-string, string given\\.$#" count: 1