Modernize property declarations in src/world/*

This commit is contained in:
Dylan K. Taylor
2022-04-28 15:06:17 +01:00
parent 159392e738
commit b88a47929f
16 changed files with 116 additions and 215 deletions

View File

@ -33,22 +33,18 @@ use pocketmine\world\World;
use function max;
class SkyLightUpdate extends LightUpdate{
/**
* @var \SplFixedArray|bool[]
* @phpstan-var \SplFixedArray<bool>
*/
private $directSkyLightBlockers;
/**
* @param \SplFixedArray|int[] $lightFilters
* @param \SplFixedArray|bool[] $directSkyLightBlockers
* @phpstan-param \SplFixedArray<int> $lightFilters
* @phpstan-param \SplFixedArray<bool> $directSkyLightBlockers
*/
public function __construct(SubChunkExplorer $subChunkExplorer, \SplFixedArray $lightFilters, \SplFixedArray $directSkyLightBlockers){
public function __construct(
SubChunkExplorer $subChunkExplorer,
\SplFixedArray $lightFilters,
private \SplFixedArray $directSkyLightBlockers
){
parent::__construct($subChunkExplorer, $lightFilters);
$this->directSkyLightBlockers = $directSkyLightBlockers;
}
protected function getCurrentLightArray() : LightArray{