mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
PermissibleBase: fix typehints of calculateChildPermissions()
This commit is contained in:
parent
0233ae1eb6
commit
e081b7dffa
@ -189,9 +189,9 @@ class PermissibleBase implements Permissible{
|
|||||||
/**
|
/**
|
||||||
* @param bool[] $children
|
* @param bool[] $children
|
||||||
* @param bool $invert
|
* @param bool $invert
|
||||||
* @param PermissionAttachment $attachment
|
* @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){
|
foreach($children as $name => $v){
|
||||||
$perm = Server::getInstance()->getPluginManager()->getPermission($name);
|
$perm = Server::getInstance()->getPluginManager()->getPermission($name);
|
||||||
$value = ($v xor $invert);
|
$value = ($v xor $invert);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user