Merge branch 'stable' into next-minor

This commit is contained in:
Dylan K. Taylor 2022-01-07 20:16:35 +00:00
commit 75fc7a2d1f
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
39 changed files with 44 additions and 44 deletions

View File

@ -74,6 +74,7 @@ return (new PhpCsFixer\Config)
'return_type_declaration' => [ 'return_type_declaration' => [
'space_before' => 'one' 'space_before' => 'one'
], ],
'single_blank_line_at_eof' => true,
'single_import_per_statement' => true, 'single_import_per_statement' => true,
'strict_param' => true, 'strict_param' => true,
'unary_operator_spaces' => true, 'unary_operator_spaces' => true,

View File

@ -116,4 +116,3 @@ foreach(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($argv[1],
echo "No changes made to file $file\n"; echo "No changes made to file $file\n";
} }
} }

View File

@ -53,7 +53,7 @@
"webmozart/path-util": "^2.3" "webmozart/path-util": "^2.3"
}, },
"require-dev": { "require-dev": {
"phpstan/phpstan": "1.3.1", "phpstan/phpstan": "1.3.3",
"phpstan/phpstan-phpunit": "^1.0.0", "phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/phpstan-strict-rules": "^1.0.0", "phpstan/phpstan-strict-rules": "^1.0.0",
"phpunit/phpunit": "^9.2" "phpunit/phpunit": "^9.2"

14
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "8b6fac2b9bbfe685d654ed417713d894", "content-hash": "934b70469f9dcb4c9697f69e6c4a9ec5",
"packages": [ "packages": [
{ {
"name": "adhocore/json-comment", "name": "adhocore/json-comment",
@ -1900,16 +1900,16 @@
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "1.3.1", "version": "1.3.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "c3e7a5837829b3cd5907b895da73a4da084a9f8f" "reference": "151a51f6149855785fbd883e79768c0abc96b75f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c3e7a5837829b3cd5907b895da73a4da084a9f8f", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/151a51f6149855785fbd883e79768c0abc96b75f",
"reference": "c3e7a5837829b3cd5907b895da73a4da084a9f8f", "reference": "151a51f6149855785fbd883e79768c0abc96b75f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1940,7 +1940,7 @@
"description": "PHPStan - PHP Static Analysis Tool", "description": "PHPStan - PHP Static Analysis Tool",
"support": { "support": {
"issues": "https://github.com/phpstan/phpstan/issues", "issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.3.1" "source": "https://github.com/phpstan/phpstan/tree/1.3.3"
}, },
"funding": [ "funding": [
{ {
@ -1960,7 +1960,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-01-04T17:12:37+00:00" "time": "2022-01-07T09:49:03+00:00"
}, },
{ {
"name": "phpstan/phpstan-phpunit", "name": "phpstan/phpstan-phpunit",

View File

@ -34,4 +34,4 @@ final class CraftingTableInventory extends CraftingGrid implements BlockInventor
$this->holder = $holder; $this->holder = $holder;
parent::__construct(CraftingGrid::SIZE_BIG); parent::__construct(CraftingGrid::SIZE_BIG);
} }
} }

View File

@ -65,4 +65,4 @@ final class FurnaceRecipeManager{
public function match(Item $input) : ?FurnaceRecipe{ public function match(Item $input) : ?FurnaceRecipe{
return $this->furnaceRecipes[$input->getId() . ":" . $input->getMeta()] ?? $this->furnaceRecipes[$input->getId() . ":?"] ?? null; return $this->furnaceRecipes[$input->getId() . ":" . $input->getMeta()] ?? $this->furnaceRecipes[$input->getId() . ":?"] ?? null;
} }
} }

View File

@ -81,4 +81,4 @@ final class CrashDumpData implements \JsonSerializable{
$result["server.properties"] = $this->serverDotProperties; $result["server.properties"] = $this->serverDotProperties;
return $result; return $result;
} }
} }

View File

@ -43,4 +43,4 @@ final class CrashDumpDataGeneral{
public string $os, public string $os,
public array $composer_libraries, public array $composer_libraries,
){} ){}
} }

View File

@ -42,4 +42,4 @@ final class CrashDumpDataPluginEntry{
public string $load, public string $load,
public string $website, public string $website,
){} ){}
} }

View File

@ -100,4 +100,4 @@ final class CrashDumpRenderer{
public function addLine(string $line = "") : void{ public function addLine(string $line = "") : void{
fwrite($this->fp, $line . PHP_EOL); fwrite($this->fp, $line . PHP_EOL);
} }
} }

View File

@ -25,4 +25,4 @@ namespace pocketmine\data;
final class SavedDataLoadingException extends \RuntimeException{ final class SavedDataLoadingException extends \RuntimeException{
} }

View File

@ -32,4 +32,4 @@ final class LegacyBiomeIdToStringIdMap extends LegacyToStringBidirectionalIdMap{
public function __construct(){ public function __construct(){
parent::__construct(Path::join(\pocketmine\BEDROCK_DATA_PATH, 'biome_id_map.json')); parent::__construct(Path::join(\pocketmine\BEDROCK_DATA_PATH, 'biome_id_map.json'));
} }
} }

View File

@ -25,4 +25,4 @@ namespace pocketmine\entity;
final class InvalidSkinException extends \InvalidArgumentException{ final class InvalidSkinException extends \InvalidArgumentException{
} }

View File

@ -70,4 +70,4 @@ final class StringToEffectParser extends StringToTParser{
public function parse(string $input) : ?Effect{ public function parse(string $input) : ?Effect{
return parent::parse($input); return parent::parse($input);
} }
} }

View File

@ -57,4 +57,4 @@ class BlockItemPickupEvent extends BlockEvent implements Cancellable{
public function setInventory(?Inventory $inventory) : void{ public function setInventory(?Inventory $inventory) : void{
$this->inventory = $inventory; $this->inventory = $inventory;
} }
} }

View File

@ -37,4 +37,4 @@ class StructureGrowEvent extends BlockEvent implements Cancellable{
public function getPlayer() : ?Player{ public function getPlayer() : ?Player{
return $this->player; return $this->player;
} }
} }

View File

@ -45,4 +45,4 @@ class PlayerDisplayNameChangeEvent extends PlayerEvent{
public function getNewName() : string{ public function getNewName() : string{
return $this->newName; return $this->newName;
} }
} }

View File

@ -33,4 +33,4 @@ final class PlayerCraftingInventory extends CraftingGrid implements TemporaryInv
} }
public function getHolder() : Player{ return $this->holder; } public function getHolder() : Player{ return $this->holder; }
} }

View File

@ -25,4 +25,4 @@ namespace pocketmine\inventory;
interface TemporaryInventory extends Inventory{ interface TemporaryInventory extends Inventory{
} }

View File

@ -63,4 +63,4 @@ final class StringToEnchantmentParser extends StringToTParser{
public function parse(string $input) : ?Enchantment{ public function parse(string $input) : ?Enchantment{
return parent::parse($input); return parent::parse($input);
} }
} }

View File

@ -29,4 +29,4 @@ namespace pocketmine\network;
*/ */
final class NetworkInterfaceStartException extends \RuntimeException{ final class NetworkInterfaceStartException extends \RuntimeException{
} }

View File

@ -33,4 +33,4 @@ interface Compressor{
public function decompress(string $payload) : string; public function decompress(string $payload) : string;
public function compress(string $payload) : string; public function compress(string $payload) : string;
} }

View File

@ -25,4 +25,4 @@ namespace pocketmine\network\mcpe\compression;
final class DecompressionException extends \RuntimeException{ final class DecompressionException extends \RuntimeException{
} }

View File

@ -59,4 +59,4 @@ final class RakLibThreadCrashInfo{
public function makePrettyMessage() : string{ public function makePrettyMessage() : string{
return sprintf("%s: \"%s\" in %s on line %d", $this->class ?? "Fatal error", $this->message, Filesystem::cleanPath($this->file), $this->line); return sprintf("%s: \"%s\" in %s on line %d", $this->class ?? "Fatal error", $this->message, Filesystem::cleanPath($this->file), $this->line);
} }
} }

View File

@ -39,4 +39,4 @@ final class PluginLoadTriageEntry{
public function getLoader() : PluginLoader{ return $this->loader; } public function getLoader() : PluginLoader{ return $this->loader; }
public function getDescription() : PluginDescription{ return $this->description; } public function getDescription() : PluginDescription{ return $this->description; }
} }

View File

@ -110,4 +110,4 @@ final class PluginLoadabilityChecker{
return null; return null;
} }
} }

View File

@ -52,4 +52,4 @@ final class Promise{
public function isResolved() : bool{ public function isResolved() : bool{
return $this->shared->resolved; return $this->shared->resolved;
} }
} }

View File

@ -72,4 +72,4 @@ final class PromiseResolver{
public function getPromise() : Promise{ public function getPromise() : Promise{
return $this->promise; return $this->promise;
} }
} }

View File

@ -45,4 +45,4 @@ trait SingletonTrait{
public static function reset() : void{ public static function reset() : void{
self::$instance = null; self::$instance = null;
} }
} }

View File

@ -79,4 +79,4 @@ abstract class StringToTParser{
public function getKnownAliases() : array{ public function getKnownAliases() : array{
return array_keys($this->callbackMap); return array_keys($this->callbackMap);
} }
} }

View File

@ -35,4 +35,4 @@ use pocketmine\utils\NotSerializable;
final class ChunkLockId{ final class ChunkLockId{
use NotCloneable; use NotCloneable;
use NotSerializable; use NotSerializable;
} }

View File

@ -124,4 +124,4 @@ final class FlatGeneratorOptions{
return new self($structure, $biomeId, $options); return new self($structure, $biomeId, $options);
} }
} }

View File

@ -45,4 +45,4 @@ final class GeneratorManagerEntry{
throw $exception; throw $exception;
} }
} }
} }

View File

@ -87,4 +87,4 @@ final class UnsafeForeachArrayOfStringRule implements Rule{
return []; return [];
} }
} }

View File

@ -6,4 +6,4 @@ namespace pocketmine\utils\fixtures;
abstract class TestAbstractClass{ abstract class TestAbstractClass{
} }

View File

@ -6,4 +6,4 @@ namespace pocketmine\utils\fixtures;
class TestInstantiableClass extends TestAbstractClass implements TestInterface{ class TestInstantiableClass extends TestAbstractClass implements TestInterface{
} }

View File

@ -6,4 +6,4 @@ namespace pocketmine\utils\fixtures;
interface TestInterface{ interface TestInterface{
} }

View File

@ -6,4 +6,4 @@ namespace pocketmine\utils\fixtures;
class TestSubclassOfInstantiableClass extends TestInstantiableClass{ class TestSubclassOfInstantiableClass extends TestInstantiableClass{
} }

View File

@ -6,4 +6,4 @@ namespace pocketmine\utils\fixtures;
trait TestTrait{ trait TestTrait{
} }