Chunk: stop exposing SplFixedArray<SubChunk> to the API

this fixes a large number of PHPStan errors, and also brings us a step closer to negative-build-height readiness.
This commit is contained in:
Dylan K. Taylor
2021-10-01 22:17:28 +01:00
parent 42bf9578ce
commit 5b818827db
5 changed files with 14 additions and 73 deletions

View File

@ -67,7 +67,7 @@ final class FastChunkSerializer{
//subchunks
$subChunks = $chunk->getSubChunks();
$count = $subChunks->count();
$count = count($subChunks);
$stream->putByte($count);
foreach($subChunks as $y => $subChunk){