BlockTransaction: added phpstan return type info for getBlocks()

This commit is contained in:
Dylan K. Taylor 2021-01-25 18:04:42 +00:00
parent 74902d9926
commit 269a389a97
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -103,6 +103,7 @@ class BlockTransaction{
/**
* @return \Generator|mixed[] [int $x, int $y, int $z, Block $block]
* @phpstan-return \Generator<int, array{int, int, int, Block}, void, void>
*/
public function getBlocks() : \Generator{
foreach($this->blocks as $x => $yLine){