Achievement: declare proper type for $list static property

This commit is contained in:
Dylan K. Taylor 2021-11-01 15:22:33 +00:00
parent 94737934de
commit f8f39687e2
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -30,7 +30,10 @@ use pocketmine\utils\TextFormat;
* Handles the achievement list and a bit more * Handles the achievement list and a bit more
*/ */
abstract class Achievement{ abstract class Achievement{
/** @var array[] */ /**
* @var mixed[][]
* @phpstan-var array<string, array{name: string, requires: list<string>}>
*/
public static $list = [ public static $list = [
/*"openInventory" => array( /*"openInventory" => array(
"name" => "Taking Inventory", "name" => "Taking Inventory",