mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Replace InvalidStateException usages with InvalidArgument or LogicException
This commit is contained in:
@@ -146,7 +146,7 @@ class PermissibleInternal implements Permissible{
|
||||
foreach($this->rootPermissions as $name => $isGranted){
|
||||
$perm = $permManager->getPermission($name);
|
||||
if($perm === null){
|
||||
throw new \InvalidStateException("Unregistered root permission $name");
|
||||
throw new \LogicException("Unregistered root permission $name");
|
||||
}
|
||||
$this->permissions[$name] = new PermissionAttachmentInfo($name, null, $isGranted, null);
|
||||
$permManager->subscribeToPermission($name, $this);
|
||||
|
Reference in New Issue
Block a user