PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation
oleibman 7d71a7ca54
New Error Reported with Phpstan 1.3 (#2481)
* New Error Reported with Phpstan 1.3

Dependabot opened a number of PRs. Most are successful, but this change is necessary to allow PR #2477 to complete successfully, and that is apparently a necessity for PR #2479.

Phpstan 1.3 objected to:
```php
trigger_error($errorMessage, E_USER_ERROR);
return false;
```
It claims the return statement is unreachable. This isn't precisely true - an error handler might allow the return to be reached. At any rate, I have slightly restructured the code so that Phpstan will not object either with 1.2 or 1.3, which should allow the blocked PRs to succeed. There had been no previous tests for what happens when there is a formula error when suppressFormulaErrors is true.

* Scrutinizer

Didn't like effect of changes which Phpstan liked. Hopefully this will work better.

* Improvement

Eliminate added function.
2022-01-03 17:32:52 -08:00
..
Engine Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
Functions Replace Tests With Unneeded Mocking (#2465) 2021-12-31 13:24:43 -08:00
CalculationErrorTest.php New Error Reported with Phpstan 1.3 (#2481) 2022-01-03 17:32:52 -08:00
CalculationTest.php Some simplification to the locale file loader 2021-05-20 20:41:09 +02: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 isFormula Referencing Sheet With Space in Title (#2306) 2021-10-03 10:04:48 -07:00
IsFormulaTest.php isFormula Referencing Sheet With Space in Title (#2306) 2021-10-03 10:04:48 -07:00
MergedCellTest.php Select the correct TestCase 2021-05-31 13:59:51 +02:00
RowColumnReferenceTest.php Improve Range handling in the Calculation Engine for Row and Column ranges (#2028) 2021-04-27 19:10:37 +02: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