fill in more iterable types (master)

This commit is contained in:
Dylan K. Taylor
2020-02-01 20:19:57 +00:00
parent 200209b76c
commit ff63f6d055
26 changed files with 121 additions and 3 deletions

View File

@@ -122,6 +122,9 @@ class PermissionParser{
/**
* @param Permission[] $permissions
*
* @return mixed[]
* @phpstan-return array<string, array<string, mixed>>
*/
public static function emitPermissions(array $permissions) : array{
$result = [];
@@ -132,6 +135,10 @@ class PermissionParser{
return $result;
}
/**
* @return mixed[]
* @phpstan-return array<string, mixed>
*/
private static function emitPermission(Permission $permission) : array{
$result = [
"description" => $permission->getDescription(),