Closed roberto-butti closed 2 years ago
Now we achieved level 8 for static code analysis with PHPStan
The new goal is to fix all warings/errors for Level 9. Now we are at level 8.
To achieve level 9:
------ --------------------------------------------------------------------- Line Freq.php ------ --------------------------------------------------------------------- 120 Parameter #1 $num of function floor expects float|int, mixed given. 121 Parameter #1 $num of function ceil expects float|int, mixed given. 159 Parameter #1 $num of function floor expects float|int, mixed given. 160 Parameter #1 $num of function ceil expects float|int, mixed given. ------ --------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------------------------ Line Stat.php ------ ------------------------------------------------------------------------------------------------------------ 139 Method HiFolks\Statistics\Stat::multimode() should return array|null but returns mixed. 358 Parameter #1 $data of static method HiFolks\Statistics\Stat::mean() expects array<float|int>, array given. 359 Parameter #1 $data of static method HiFolks\Statistics\Stat::mean() expects array<float|int>, array given. 400 Parameter #1 $data of static method HiFolks\Statistics\Stat::mean() expects array<float|int>, array given. 401 Parameter #1 $data of static method HiFolks\Statistics\Stat::mean() expects array<float|int>, array given. ------ ------------------------------------------------------------------------------------------------------------ ------ -------------------------------------------------------------------------------------------------------------- Line Statistics.php ------ -------------------------------------------------------------------------------------------------------------- 158 Parameter #1 $data of static method HiFolks\Statistics\Stat::mean() expects array<float|int>, array given. 217 Parameter #1 $data of static method HiFolks\Statistics\Stat::stdev() expects array<float|int>, array given. 228 Parameter #1 $data of static method HiFolks\Statistics\Stat::variance() expects array<float|int>, array given. 239 Parameter #1 $data of static method HiFolks\Statistics\Stat::pstdev() expects array<float|int>, array given. 250 Parameter #1 $data of static method HiFolks\Statistics\Stat::pvariance() expects array<float|int>, array given. 271 Parameter #1 $data of static method HiFolks\Statistics\Stat::harmonicMean() expects array<float|int>, array given. ------ --------------------------------------------------------------------------------------------------------------
Now we achieved level 8 for static code analysis with PHPStan
The new goal is to fix all warings/errors for Level 9. Now we are at level 8.
To achieve level 9: