mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
Stub PalettedBlockArray functions that work with arrays
and workaround PHPStan stupidity
This commit is contained in:
15
tests/phpstan/stubs/chunkutils2.stub
Normal file
15
tests/phpstan/stubs/chunkutils2.stub
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace pocketmine\world\format;
|
||||
|
||||
final class PalettedBlockArray{
|
||||
/**
|
||||
* @param list<int> $palette
|
||||
*/
|
||||
public static function fromData(int $bitsPerBlock, string $wordArray, array $palette): PalettedBlockArray {}
|
||||
|
||||
/**
|
||||
* @return list<int>
|
||||
*/
|
||||
public function getPalette(): array {}
|
||||
}
|
Reference in New Issue
Block a user