Leaves: fixed phpstan type doc error

for some reason this isn't reported unless bleeding edge is enabled.
This commit is contained in:
Dylan K. Taylor 2020-09-06 16:12:24 +01:00
parent 94d8f59484
commit f45316d2d6

View File

@ -69,7 +69,7 @@ class Leaves extends Transparent{
/**
* @param true[] $visited reference parameter
* @phpstan-param array<string, true> $visited
* @phpstan-param array<int, true> $visited
*/
protected function findLog(Vector3 $pos, array &$visited = [], int $distance = 0) : bool{
$index = World::blockHash($pos->x, $pos->y, $pos->z);