LevelProvider::generate() accepts class-string<Generator>, not any

string
This commit is contained in:
Dylan K. Taylor 2020-02-01 20:16:05 +00:00
parent 829dd02eea
commit 0a566f8218

View File

@ -26,6 +26,7 @@ namespace pocketmine\level\format\io;
use pocketmine\level\format\Chunk; use pocketmine\level\format\Chunk;
use pocketmine\level\format\io\exception\CorruptedChunkException; use pocketmine\level\format\io\exception\CorruptedChunkException;
use pocketmine\level\format\io\exception\UnsupportedChunkFormatException; use pocketmine\level\format\io\exception\UnsupportedChunkFormatException;
use pocketmine\level\generator\Generator;
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
interface LevelProvider{ interface LevelProvider{
@ -54,7 +55,8 @@ interface LevelProvider{
* Generate the needed files in the path given * Generate the needed files in the path given
* *
* @param mixed[] $options * @param mixed[] $options
* @phpstan-param array<string, mixed> $options * @phpstan-param class-string<Generator> $generator
* @phpstan-param array<string, mixed> $options
* *
* @return void * @return void
*/ */