Modernize property declarations in pocketmine\block namespace

This commit is contained in:
Dylan K. Taylor
2022-04-25 13:00:29 +01:00
parent 09778e3f1b
commit 72cff0ee11
23 changed files with 80 additions and 139 deletions

View File

@ -44,14 +44,13 @@ class Banner extends Spawnable{
public const TAG_PATTERN_COLOR = "Color";
public const TAG_PATTERN_NAME = "Pattern";
/** @var DyeColor */
private $baseColor;
private DyeColor $baseColor;
/**
* @var BannerPatternLayer[]
* @phpstan-var list<BannerPatternLayer>
*/
private $patterns = [];
private array $patterns = [];
public function __construct(World $world, Vector3 $pos){
$this->baseColor = DyeColor::BLACK();