populate missing array value types in root namespace

This commit is contained in:
Dylan K. Taylor 2020-01-30 21:43:00 +00:00
parent d3021c6281
commit 9eebfa7cc3
3 changed files with 8 additions and 1 deletions

View File

@ -119,6 +119,9 @@ abstract class Achievement{
return false;
}
/**
* @param string[] $requires
*/
public static function add(string $achievementId, string $achievementName, array $requires = []) : bool{
if(!isset(Achievement::$list[$achievementId])){
Achievement::$list[$achievementId] = [

View File

@ -144,6 +144,9 @@ class CrashDump{
return $this->encodedData;
}
/**
* @return mixed[]
*/
public function getData() : array{
return $this->data;
}

View File

@ -977,6 +977,7 @@ class Server{
* Generates a new level if it does not exist
*
* @param string|null $generator Class name that extends pocketmine\level\generator\Generator
* @param mixed[] $options
*/
public function generateLevel(string $name, int $seed = null, $generator = null, array $options = []) : bool{
if(trim($name) === "" or $this->isLevelGenerated($name)){
@ -1997,7 +1998,7 @@ class Server{
}
/**
* @param array|null $trace
* @param mixed[][]|null $trace
*
* @return void
*/