add some phpstan array types

This commit is contained in:
Dylan K. Taylor
2020-01-30 22:06:21 +00:00
parent 4ff4434a22
commit 260ac47588
39 changed files with 177 additions and 27 deletions

View File

@ -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;

View File

@ -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{