Modernize private property declarations in src/item

This commit is contained in:
Dylan K. Taylor
2022-05-17 20:59:24 +01:00
parent fb4d332d1a
commit 95ad3f16e1
21 changed files with 44 additions and 100 deletions

View File

@ -28,9 +28,7 @@ use pocketmine\block\utils\DyeColor;
use pocketmine\block\VanillaBlocks;
class Bed extends Item{
/** @var DyeColor */
private $color;
private DyeColor $color;
public function __construct(ItemIdentifier $identifier, string $name, DyeColor $color){
parent::__construct($identifier, $name);