From 7954a816025c328b3276729b8b65c15464e00e19 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 17 Jul 2019 18:04:15 +0100 Subject: [PATCH] fixing finality and constructor visibility on some enums --- src/pocketmine/block/utils/SkullType.php | 2 +- src/pocketmine/world/sound/NoteInstrument.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/block/utils/SkullType.php b/src/pocketmine/block/utils/SkullType.php index b53e974b7..38bdc20f6 100644 --- a/src/pocketmine/block/utils/SkullType.php +++ b/src/pocketmine/block/utils/SkullType.php @@ -81,7 +81,7 @@ final class SkullType{ /** @var int */ private $magicNumber; - public function __construct(string $enumName, string $displayName, int $magicNumber){ + private function __construct(string $enumName, string $displayName, int $magicNumber){ $this->Enum___construct($enumName); $this->displayName = $displayName; $this->magicNumber = $magicNumber; diff --git a/src/pocketmine/world/sound/NoteInstrument.php b/src/pocketmine/world/sound/NoteInstrument.php index 622333367..255bfe1f8 100644 --- a/src/pocketmine/world/sound/NoteInstrument.php +++ b/src/pocketmine/world/sound/NoteInstrument.php @@ -36,7 +36,7 @@ use pocketmine\utils\EnumTrait; * @method static self CLICKS_AND_STICKS() * @method static self DOUBLE_BASS() */ -class NoteInstrument{ +final class NoteInstrument{ use EnumTrait { __construct as Enum___construct; } @@ -54,7 +54,7 @@ class NoteInstrument{ /** @var int */ private $magicNumber; - public function __construct(string $name, int $magicNumber){ + private function __construct(string $name, int $magicNumber){ $this->Enum___construct($name); $this->magicNumber = $magicNumber; }