mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Merge remote-tracking branch 'origin/stable' into master
# Conflicts: # build/php # composer.lock # phpstan.neon.dist # resources/vanilla # src/pocketmine/Server.php # src/pocketmine/VersionInfo.php # src/pocketmine/entity/Entity.php # src/pocketmine/lang/locale # src/utils/Timezone.php # tests/phpstan/bootstrap.php # tests/phpstan/configs/custom-leveldb.neon
This commit is contained in:
@ -23,6 +23,10 @@ declare(strict_types=1);
|
||||
|
||||
define('pocketmine\_PHPSTAN_ANALYSIS', true);
|
||||
|
||||
if(!defined('LEVELDB_ZLIB_RAW_COMPRESSION')){
|
||||
//leveldb might not be loaded
|
||||
define('LEVELDB_ZLIB_RAW_COMPRESSION', 4);
|
||||
}
|
||||
if(!extension_loaded('libdeflate')){
|
||||
function libdeflate_deflate_compress(string $data, int $level = 6) : string{}
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
#TODO: use custom stubs
|
||||
-
|
||||
message: "#^Used constant LEVELDB_ZLIB_RAW_COMPRESSION not found\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/world/format/io/leveldb/LevelDB.php
|
||||
|
||||
-
|
||||
message: "#^Constant LEVELDB_ZLIB_RAW_COMPRESSION not found\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/world/format/io/leveldb/LevelDB.php
|
Reference in New Issue
Block a user