mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
PermissibleBase: fix typehints of calculateChildPermissions()
This commit is contained in:
parent
0233ae1eb6
commit
e081b7dffa
@ -187,11 +187,11 @@ class PermissibleBase implements Permissible{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool[] $children
|
||||
* @param bool $invert
|
||||
* @param PermissionAttachment $attachment
|
||||
* @param bool[] $children
|
||||
* @param bool $invert
|
||||
* @param PermissionAttachment|null $attachment
|
||||
*/
|
||||
private function calculateChildPermissions(array $children, $invert, $attachment){
|
||||
private function calculateChildPermissions(array $children, bool $invert, ?PermissionAttachment $attachment){
|
||||
foreach($children as $name => $v){
|
||||
$perm = Server::getInstance()->getPluginManager()->getPermission($name);
|
||||
$value = ($v xor $invert);
|
||||
|
Loading…
x
Reference in New Issue
Block a user