Modernize property type declarations

This commit is contained in:
Dylan K. Taylor
2022-06-04 18:16:32 +01:00
parent 23695fb900
commit 083a35f970
114 changed files with 431 additions and 863 deletions

View File

@@ -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;

View File

@@ -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;