Fixed wrong doccomment for Permission::$children

This commit is contained in:
SOFe 2018-05-04 15:31:00 +08:00
parent 723251e800
commit ae0c1c185f
No known key found for this signature in database
GPG Key ID: A0379676C4D9D5D9

View File

@ -24,6 +24,7 @@ declare(strict_types=1);
/** /**
* Permission related classes * Permission related classes
*/ */
namespace pocketmine\permission; namespace pocketmine\permission;
use pocketmine\Server; use pocketmine\Server;
@ -84,7 +85,7 @@ class Permission{
private $description; private $description;
/** /**
* @var string[] * @var bool[]
*/ */
private $children; private $children;
@ -94,10 +95,10 @@ class Permission{
/** /**
* Creates a new Permission object to be attached to Permissible objects * Creates a new Permission object to be attached to Permissible objects
* *
* @param string $name * @param string $name
* @param string $description * @param string $description
* @param string $defaultValue * @param string $defaultValue
* @param Permission[] $children * @param bool[] $children
*/ */
public function __construct(string $name, string $description = null, string $defaultValue = null, array $children = []){ public function __construct(string $name, string $description = null, string $defaultValue = null, array $children = []){
$this->name = $name; $this->name = $name;
@ -116,7 +117,7 @@ class Permission{
} }
/** /**
* @return string[] * @return bool[]
*/ */
public function &getChildren() : array{ public function &getChildren() : array{
return $this->children; return $this->children;
@ -173,7 +174,7 @@ class Permission{
/** /**
* @param string|Permission $name * @param string|Permission $name
* @param $value * @param bool $value
* *
* @return Permission|null Permission if $name is a string, null if it's a Permission * @return Permission|null Permission if $name is a string, null if it's a Permission
*/ */