mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-27 18:48:36 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user