pass 2, manual removal of incorrect non-nullable phpdoc types

This commit is contained in:
Dylan K. Taylor
2020-01-22 12:06:47 +00:00
parent 67bcc1c0fb
commit 1b33143f4f
15 changed files with 0 additions and 48 deletions

View File

@@ -85,11 +85,6 @@ class BanList{
$this->save();
}
/**
* @param string $reason
* @param \DateTime $expires
* @param string $source
*/
public function addBan(string $target, ?string $reason = null, ?\DateTime $expires = null, ?string $source = null) : BanEntry{
$entry = new BanEntry($target);
$entry->setSource($source ?? $entry->getSource());

View File

@@ -26,9 +26,6 @@ namespace pocketmine\permission;
abstract class DefaultPermissions{
public const ROOT = "pocketmine";
/**
* @param Permission $parent
*/
public static function registerPermission(Permission $perm, ?Permission $parent = null) : Permission{
if($parent instanceof Permission){
$parent->getChildren()[$perm->getName()] = true;

View File

@@ -41,10 +41,6 @@ interface Permissible extends ServerOperator{
*/
public function hasPermission($name) : bool;
/**
* @param string $name
* @param bool $value
*/
public function addAttachment(Plugin $plugin, ?string $name = null, ?bool $value = null) : PermissionAttachment;
public function removeAttachment(PermissionAttachment $attachment) : void;

View File

@@ -91,9 +91,6 @@ class PermissibleBase implements Permissible{
/**
* //TODO: tick scheduled attachments
*
* @param string $name
* @param bool $value
*/
public function addAttachment(Plugin $plugin, ?string $name = null, ?bool $value = null) : PermissionAttachment{
if(!$plugin->isEnabled()){

View File

@@ -44,10 +44,6 @@ trait PermissibleDelegateTrait{
return $this->perm->hasPermission($name);
}
/**
* @param string $name
* @param bool $value
*/
public function addAttachment(Plugin $plugin, ?string $name = null, ?bool $value = null) : PermissionAttachment{
return $this->perm->addAttachment($plugin, $name, $value);
}

View File

@@ -56,8 +56,6 @@ class Permission{
/**
* Creates a new Permission object to be attached to Permissible objects
*
* @param string $description
* @param string $defaultValue
* @param bool[] $children
*/
public function __construct(string $name, ?string $description = null, ?string $defaultValue = null, array $children = []){