Cleanup After Phpstan Upgrade (#2800)

After Phpstan 1.6.3 upgrade, clean up some new problems that will show up if it runs under Php 8+.
This commit is contained in:
oleibman
2022-05-10 07:20:22 -07:00
committed by GitHub
parent 4d5a4824c4
commit b0bfdde164
5 changed files with 36 additions and 21 deletions
+7
View File
@@ -46,6 +46,13 @@ if (PHP_VERSION_ID < 80000) {
'path' => __DIR__ . '/src/PhpSpreadsheet/Shared/StringHelper.php',
'count' => 1,
];
} else {
// Flagged in Php8+ - unsure how to correct code
$config['parameters']['ignoreErrors'][] = [
'message' => '#^Binary operation "/" between float and array[|]float[|]int[|]string results in an error.#',
'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/MathTrig/Combinations.php',
'count' => 2,
];
}
return $config;