self::INT_REF, self::STR => self::STR_REF, self::FLOAT => self::FLOAT_REF, self::BOOL => self::BOOL_REF, self::ARRAY => self::ARRAY_REF, default => null, }; } public static function getReferencedType(string $type): string { return match ($type) { self::INT_REF => self::INT, self::STR_REF => self::STR, self::FLOAT_REF => self::FLOAT, self::BOOL_REF => self::BOOL, self::ARRAY_REF => self::ARRAY, default => $type, }; } }