mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +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{}
|
||||
}
|
||||
|
Reference in New Issue
Block a user