mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
SuspiciousStewTypeIdMap: fixed uninitialized fields
This commit is contained in:
parent
973b8130db
commit
ec59dc1c80
@ -33,13 +33,13 @@ final class SuspiciousStewTypeIdMap{
|
|||||||
* @var SuspiciousStewType[]
|
* @var SuspiciousStewType[]
|
||||||
* @phpstan-var array<int, SuspiciousStewType>
|
* @phpstan-var array<int, SuspiciousStewType>
|
||||||
*/
|
*/
|
||||||
private array $idToEnum;
|
private array $idToEnum = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int[]
|
* @var int[]
|
||||||
* @phpstan-var array<int, int>
|
* @phpstan-var array<int, int>
|
||||||
*/
|
*/
|
||||||
private array $enumToId;
|
private array $enumToId = [];
|
||||||
|
|
||||||
private function __construct(){
|
private function __construct(){
|
||||||
$this->register(SuspiciousStewTypeIds::POPPY, SuspiciousStewType::POPPY());
|
$this->register(SuspiciousStewTypeIds::POPPY, SuspiciousStewType::POPPY());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user