mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
RegionLoader: specify type of unpack() return
PHPStan has no idea what is going on in this code because unpack() returns mixed[]. Possibly it might be a good idea to implement a dynamic return type extension for this.
This commit is contained in:
parent
4a88db7f43
commit
114df07622
@ -303,6 +303,7 @@ class RegionLoader{
|
||||
throw new CorruptedRegionException("Corrupted region header (unexpected end of file)");
|
||||
}
|
||||
|
||||
/** @var int[] $data */
|
||||
$data = unpack("N*", $headerRaw);
|
||||
|
||||
for($i = 0; $i < 1024; ++$i){
|
||||
|
Loading…
x
Reference in New Issue
Block a user