tests/phpunit: populate iterable types for phpstan

This commit is contained in:
Dylan K. Taylor
2020-02-06 13:11:56 +00:00
parent 54ccc330d5
commit 532dc0fb6f
6 changed files with 22 additions and 4 deletions

View File

@ -69,6 +69,10 @@ class RegionLoaderTest extends TestCase{
self::assertSame($data, $r->readChunk(0, 0));
}
/**
* @return \Generator|int[][]
* @phpstan-return \Generator<int, array{int,int}, void, void>
*/
public function outOfBoundsCoordsProvider() : \Generator{
yield [-1, -1];
yield [32, 32];