SuspiciousStewTypeIdMap: fixed uninitialized fields

This commit is contained in:
Dylan K. Taylor 2022-12-19 15:58:26 +00:00
parent 973b8130db
commit ec59dc1c80
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -33,13 +33,13 @@ final class SuspiciousStewTypeIdMap{
* @var SuspiciousStewType[]
* @phpstan-var array<int, SuspiciousStewType>
*/
private array $idToEnum;
private array $idToEnum = [];
/**
* @var int[]
* @phpstan-var array<int, int>
*/
private array $enumToId;
private array $enumToId = [];
private function __construct(){
$this->register(SuspiciousStewTypeIds::POPPY, SuspiciousStewType::POPPY());