From 6399dacba781b6b5a747c6a2b29f90a3589c82d8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 6 Dec 2019 20:33:51 +0000 Subject: [PATCH] Release 3.9.8 --- changelogs/3.9.md | 24 +++++++++++++++++++++++- src/pocketmine/VersionInfo.php | 2 +- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/changelogs/3.9.md b/changelogs/3.9.md index 57c82b7cd..3da77cc31 100644 --- a/changelogs/3.9.md +++ b/changelogs/3.9.md @@ -104,4 +104,26 @@ Plugin developers should **only** update their required API to this version if y # 3.9.7 - Fixed a crash that could occur during timezone detection. - Squid no longer spin around constantly in enclosed spaces. Their performance impact is reduced. -- Cleaned up the bootstrap file. \ No newline at end of file +- Cleaned up the bootstrap file. + +# 3.9.8 +- Added [PHPStan](https://github.com/phpstan/phpstan) configuration. PHPStan is now used on CI for automated QA, which should improve stability and quality going forward. +- The following constants are now autoloaded when loading the Composer autoloader: + - `pocketmine\NAME` + - `pocketmine\BASE_VERSION` + - `pocketmine\IS_DEVELOPMENT_BUILD` + - `pocketmine\BUILD_NUMBER` + - `INT32_MIN` + - `INT32_MAX` + - `INT32_MASK` +- Fixed memory leaks and crashes caused by plugin use of `Player->showPlayer()` and `Entity->spawnTo()`. +- Fixed crashes that could occur when tile classes were overridden with classes incompatible with the originals. +- Fixed improper handling of non-Compound root NBT tags on network itemstack decoding. +- Fixed paintings dropping multiple items when destroyed by block updates. +- Fixed `var_dump()` not showing private and protected properties of `DataPacket` subclasses. +- Fixed overloads with zero arguments being missing when decoding `AvailableCommandsPacket`. +- `CraftingDataPacket` now retains the `cleanRecipes` field when decoding. +- Fixed `Block->getMetadata()` returning null (non-iterable). +- `PlayerChatEvent` documentation has been updated to specify that `CommandSender` recipients are accepted. This behaviour was already present in previous versions, but incorrectly documented. +- Fixed various issues with PHPDoc comments reported by PHPStan. +- Fixed various minor code nits reported by PHPStan. diff --git a/src/pocketmine/VersionInfo.php b/src/pocketmine/VersionInfo.php index c8854d58a..22397a4a0 100644 --- a/src/pocketmine/VersionInfo.php +++ b/src/pocketmine/VersionInfo.php @@ -31,5 +31,5 @@ const _VERSION_INFO_INCLUDED = true; const NAME = "PocketMine-MP"; const BASE_VERSION = "3.9.8"; -const IS_DEVELOPMENT_BUILD = true; +const IS_DEVELOPMENT_BUILD = false; const BUILD_NUMBER = 0;