Drop a bunch of invalid null defaults

phpstan doesn't report these out of the box, for reasons I'm not clear on. It's also not clear if having null defaults has any effect on nullability behaviour, so they are best removed. In addition, these would be problematic on 7.4.
This commit is contained in:
Dylan K. Taylor
2020-02-05 20:53:54 +00:00
parent 41b1fa7b48
commit 495bfda044
7 changed files with 23 additions and 23 deletions

View File

@ -33,22 +33,22 @@ use function min;
*/
class BlockFactory{
/** @var \SplFixedArray<Block> */
private static $fullList = null;
private static $fullList;
/** @var \SplFixedArray<bool> */
public static $solid = null;
public static $solid;
/** @var \SplFixedArray<bool> */
public static $transparent = null;
public static $transparent;
/** @var \SplFixedArray<float> */
public static $hardness = null;
public static $hardness;
/** @var \SplFixedArray<int> */
public static $light = null;
public static $light;
/** @var \SplFixedArray<int> */
public static $lightFilter = null;
public static $lightFilter;
/** @var \SplFixedArray<bool> */
public static $diffusesSkyLight = null;
public static $diffusesSkyLight;
/** @var \SplFixedArray<float> */
public static $blastResistance = null;
public static $blastResistance;
/**
* Initializes the block factory. By default this is called only once on server start, however you may wish to use