PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation
oleibman 68158c8120
Phpstan Differences from Php7 to Php8, Again (#2665)
These changes have already been implemented twice, and been regressed twice. I'll try once more (with a different approach), then give up ...

As configured, Phpstan running under Php7 reports no errors. However, running under Php8, it reports 100 (!) errors. The vast majority of these are due to two reasons:
- renaming parameters in Php builtin functions in preparation for named parameters.
- using the new class GdImage rather than type resource as the argument type for many image-based functions.

Regardless of the cause, this will be a problem sooner or later. This PR is an attempt to get ahead of that problem. For source members, it mostly adds annotations or updates doc-blocks. Only 2 members have changes to executable code, and these are very minor - BitWise and Writer/Xlsx. For test members, all baseline errors are deleted and the code is fixed. Php7 and Php8 both report no errors with this configuration.
2022-03-11 23:28:30 -08:00
..
Engine Phpstan Differences from Php7 to Php8, Again (#2665) 2022-03-11 23:28:30 -08:00
Functions Failing Test Requiring Too Much Precision (#2647) 2022-03-04 00:11:04 -08:00
ArrayFormulaTest.php Convert all relevant Logical functions to support array arguments (#2600) 2022-02-18 02:56:23 +01:00
BinaryComparisonTest.php Extract some methods from the Calculation Engine into dedicated classes (#2537) 2022-02-04 16:02:29 +01:00
CalculationErrorTest.php New Error Reported with Phpstan 1.3 (#2481) 2022-01-03 17:32:52 -08:00
CalculationFunctionListTest.php Wrap actual file loading in protected methods, while just providing a stub `load()` method in the BaseReader abstract. This is to allow a wrapper in the file loader logic across all Readers, with a try/catch block that can be used to handle special loader settings. (#2620) 2022-02-23 21:31:57 +01:00
CalculationLoggingTest.php Unit test for the Calculation Engine debug log 2022-03-06 09:47:17 +01:00
CalculationSettingsTest.php Adjust Cell Reference regexp in Calculation Engine to handle worksheet names containing quotes (#2617) 2022-02-22 15:55:59 +01:00
CalculationTest.php Adjust Cell Reference regexp in Calculation Engine to handle worksheet names containing quotes (#2617) 2022-02-22 15:55:59 +01:00
DefinedNameConfusedForCellTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
DefinedNamesCalculationTest.php Named formula implementation, and improved handling of Defined Names generally (#1535) 2020-07-26 12:00:06 +02:00
FormulaAsStringTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
FunctionsTest.php Array-enable the ISFORMULA() function (#2610) 2022-02-20 19:32:13 +01:00
MergedCellTest.php Extract information functions (#2605) 2022-02-19 13:53:17 +01:00
NullEqualsZeroTest.php Add Test For NULL=0 (#2607) 2022-02-19 13:12:44 -08:00
RowColumnReferenceTest.php Set precision for Database function unit tests, for RowColumnReference and Dimension Helper unit tests (#2604) 2022-02-18 21:37:26 +01:00
TranslationTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
XlfnFunctionsTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00