World: make PhpStorm understand return type of getAdjacentChunks()

This commit is contained in:
Dylan K. Taylor
2021-10-26 20:29:50 +01:00
parent 1873457840
commit 51fbff204b
2 changed files with 1 additions and 3 deletions

View File

@ -2091,7 +2091,7 @@ class World implements ChunkManager{
/**
* Returns the chunks adjacent to the specified chunk.
*
* @return (Chunk|null)[]
* @return Chunk[]|null[]
*/
public function getAdjacentChunks(int $x, int $z) : array{
$result = [];