mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
make use of phpstan class-string in some areas
This commit is contained in:
@ -68,9 +68,15 @@ abstract class Tile extends Position{
|
||||
/** @var int */
|
||||
public static $tileCount = 1;
|
||||
|
||||
/** @var string[] classes that extend Tile */
|
||||
/**
|
||||
* @var string[] classes that extend Tile
|
||||
* @phpstan-var array<string, class-string<Tile>>
|
||||
*/
|
||||
private static $knownTiles = [];
|
||||
/** @var string[][] */
|
||||
/**
|
||||
* @var string[][]
|
||||
* @phpstan-var array<class-string<Tile>, list<string>>
|
||||
*/
|
||||
private static $saveNames = [];
|
||||
|
||||
/** @var string */
|
||||
@ -116,6 +122,7 @@ abstract class Tile extends Position{
|
||||
|
||||
/**
|
||||
* @param string[] $saveNames
|
||||
* @phpstan-param class-string<Tile> $className
|
||||
*
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
|
Reference in New Issue
Block a user