Modernize property declarations in src/world/generator

This commit is contained in:
Dylan K. Taylor
2022-04-28 13:16:21 +01:00
parent 46c504e529
commit ed2a239334
5 changed files with 14 additions and 28 deletions

View File

@ -37,7 +37,7 @@ final class GeneratorManager{
* @var GeneratorManagerEntry[] name => classname mapping
* @phpstan-var array<string, GeneratorManagerEntry>
*/
private $list = [];
private array $list = [];
public function __construct(){
$this->addGenerator(Flat::class, "flat", \Closure::fromCallable(function(string $preset) : ?InvalidGeneratorOptionsException{