PHPStan 1.9.1

This commit is contained in:
Dylan K. Taylor
2022-11-04 18:28:07 +00:00
parent fe982c697b
commit bfd1b2c635
6 changed files with 15 additions and 12 deletions

View File

@ -70,8 +70,7 @@ class PluginGraylist{
}
$isWhitelist = match($array["mode"]){
"whitelist" => true,
"blacklist" => false,
default => throw new \InvalidArgumentException("\"mode\" must be either \"whitelist\" or \"blacklist\"")
"blacklist" => false
};
$plugins = [];
if(isset($array["plugins"])){