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
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
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. * Returns the chunks adjacent to the specified chunk.
* *
* @return (Chunk|null)[] * @return Chunk[]|null[]
*/ */
public function getAdjacentChunks(int $x, int $z) : array{ public function getAdjacentChunks(int $x, int $z) : array{
$result = []; $result = [];

View File

@ -35,8 +35,6 @@ use function array_map;
use function igbinary_serialize; use function igbinary_serialize;
use function igbinary_unserialize; use function igbinary_unserialize;
use function intdiv; use function intdiv;
use function is_array;
use function is_string;
class PopulationTask extends AsyncTask{ class PopulationTask extends AsyncTask{
private const TLS_KEY_WORLD = "world"; private const TLS_KEY_WORLD = "world";