mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Provide a ChunkUtils stub for PHPStan, so it doesn't get confused when the extension is loaded
for some reason the presence of the type problems were reported as problems on ChunkUtils.php, despite being outside of the project scope and the errors not applying to the polyfill.
This commit is contained in:
parent
663469dfa7
commit
4bc2f28c6d
@ -20,6 +20,7 @@ parameters:
|
||||
- pocketmine\DEBUG
|
||||
stubFiles:
|
||||
- tests/phpstan/stubs/pthreads.stub
|
||||
- tests/phpstan/stubs/chunkutils.stub
|
||||
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
||||
ignoreErrors:
|
||||
-
|
||||
|
26
tests/phpstan/stubs/chunkutils.stub
Normal file
26
tests/phpstan/stubs/chunkutils.stub
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace pocketmine\level\format\io;
|
||||
|
||||
class ChunkUtils{
|
||||
/**
|
||||
* @param string $byte_array
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function reorderByteArray($byte_array){}
|
||||
|
||||
/**
|
||||
* @param string $nibble_array
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function reorderNibbleArray($nibble_array){}
|
||||
|
||||
/**
|
||||
* @param int[] $color_array
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function convertBiomeColors($color_array){}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user