mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Modernize property type declarations
This commit is contained in:
@@ -33,8 +33,7 @@ use function strtolower;
|
||||
use function trim;
|
||||
|
||||
class BanEntry{
|
||||
/** @var string */
|
||||
public static $format = "Y-m-d H:i:s O";
|
||||
public static string $format = "Y-m-d H:i:s O";
|
||||
|
||||
private string $name;
|
||||
private \DateTime $creationDate;
|
||||
|
@@ -38,9 +38,9 @@ class PermissionManager{
|
||||
}
|
||||
|
||||
/** @var Permission[] */
|
||||
protected $permissions = [];
|
||||
protected array $permissions = [];
|
||||
/** @var PermissibleInternal[][] */
|
||||
protected $permSubs = [];
|
||||
protected array $permSubs = [];
|
||||
|
||||
public function getPermission(string $name) : ?Permission{
|
||||
return $this->permissions[$name] ?? null;
|
||||
|
Reference in New Issue
Block a user