mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Modernize private property declarations in Threaded classes
I previously avoided this due to being unsure of the effects; however, it's clear that we already use typed properties on Threaded things in other places anyway, and the only known issues are with uninit properties, and arrays.
This commit is contained in:
@ -40,12 +40,9 @@ class LightPopulationTask extends AsyncTask{
|
||||
/** @var string */
|
||||
public $chunk;
|
||||
|
||||
/** @var string */
|
||||
private $resultHeightMap;
|
||||
/** @var string */
|
||||
private $resultSkyLightArrays;
|
||||
/** @var string */
|
||||
private $resultBlockLightArrays;
|
||||
private string $resultHeightMap;
|
||||
private string $resultSkyLightArrays;
|
||||
private string $resultBlockLightArrays;
|
||||
|
||||
/**
|
||||
* @phpstan-param \Closure(array<int, LightArray> $blockLight, array<int, LightArray> $skyLight, array<int, int> $heightMap) : void $onCompletion
|
||||
|
Reference in New Issue
Block a user