mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
CommandEnum: specify enumValues type
phpstan 0.12.26 starts reporting errors about the result of array_search() being given to some constructor or another because of the lack of key type specification.
This commit is contained in:
@ -26,7 +26,10 @@ namespace pocketmine\network\mcpe\protocol\types;
|
||||
class CommandEnum{
|
||||
/** @var string */
|
||||
public $enumName;
|
||||
/** @var string[] */
|
||||
/**
|
||||
* @var string[]
|
||||
* @phpstan-var list<string>
|
||||
*/
|
||||
public $enumValues = [];
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user