mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
add some phpstan array types
This commit is contained in:
@ -54,6 +54,7 @@ interface LevelProvider{
|
||||
* Generate the needed files in the path given
|
||||
*
|
||||
* @param mixed[] $options
|
||||
* @phpstan-param array<string, mixed> $options
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -66,6 +67,7 @@ interface LevelProvider{
|
||||
|
||||
/**
|
||||
* @return mixed[]
|
||||
* @phpstan-return array<string, mixed>
|
||||
*/
|
||||
public function getGeneratorOptions() : array;
|
||||
|
||||
|
@ -31,7 +31,10 @@ use function strtolower;
|
||||
use function trim;
|
||||
|
||||
abstract class LevelProviderManager{
|
||||
/** @var string[] */
|
||||
/**
|
||||
* @var string[]
|
||||
* @phpstan-var array<string, class-string<LevelProvider>>
|
||||
*/
|
||||
protected static $providers = [];
|
||||
|
||||
public static function init() : void{
|
||||
|
Reference in New Issue
Block a user