added missing @var property types (reported by phpstan)

This commit is contained in:
Dylan K. Taylor
2020-01-09 14:13:54 +00:00
parent cda3e6f4dc
commit 1eedac87b2
63 changed files with 190 additions and 1 deletions

View File

@ -28,6 +28,7 @@ use pocketmine\event\Listener;
class MethodEventExecutor implements EventExecutor{
/** @var string */
private $method;
public function __construct($method){

View File

@ -41,20 +41,28 @@ use function version_compare;
use function yaml_parse;
class PluginDescription{
/** @var mixed[] */
private $map;
/** @var string */
private $name;
/** @var string */
private $main;
/** @var string[] */
private $api;
/** @var int[] */
private $compatibleMcpeProtocols = [];
/** @var string[][] */
private $extensions = [];
/** @var string[] */
private $depend = [];
/** @var string[] */
private $softDepend = [];
/** @var string[] */
private $loadBefore = [];
/** @var string */
private $version;
/** @var mixed[][] */
private $commands = [];
/** @var string */
private $description = "";
@ -64,6 +72,7 @@ class PluginDescription{
private $website = "";
/** @var string */
private $prefix = "";
/** @var int */
private $order = PluginLoadOrder::POSTWORLD;
/**

View File

@ -29,6 +29,7 @@ use function spl_object_hash;
class PluginLogger implements \AttachableLogger{
/** @var string */
private $pluginName;
/** @var \LoggerAttachment[] */