mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-17 13:36:49 +00:00
Better Definitions for Mixed Parameters and Values Part 4 of Many
Continuing work started with PR #4016, PR #4026, and PR #4060. Improve documentation within program by making explicit what types of values are allowed for variables described as "mixed". In order to avoid broken functionality, this is done mainly through doc-blocks. This will get us closer to Phpstan Level 9, but many changes will be needed before we can consider that. After this PR, 231 changes remain, all in src/Calculation.
This commit is contained in:
@@ -30,7 +30,7 @@ class ArrayFormulaTest extends TestCase
|
||||
} else {
|
||||
self::assertEmpty($cell->getFormulaAttributes());
|
||||
}
|
||||
self::assertSame($expectedFormula, strtoupper($cell->getValue()));
|
||||
self::assertSame($expectedFormula, strtoupper($cell->getValueString()));
|
||||
Calculation::getInstance($spreadsheet)->setInstanceArrayReturnType(Calculation::RETURN_ARRAY_AS_ARRAY);
|
||||
$worksheet->calculateArrays();
|
||||
$cell = $worksheet->getCell($cellAddress);
|
||||
|
||||
Reference in New Issue
Block a user