mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
fill in more iterable types (master)
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user