Skip to content

Commit a084e7d

Browse files
committed
More Scrutinizer
1 parent a405ca0 commit a084e7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpSpreadsheet/Calculation/Calculation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3544,7 +3544,7 @@ public function calculateCellValue(?Cell $cell = null, bool $resetLog = true): m
35443544

35453545
if (is_array($result) && $this->getInstanceArrayReturnType() !== self::RETURN_ARRAY_AS_ARRAY) {
35463546
$testResult = Functions::flattenArray($result);
3547-
if (self::getInstanceArrayReturnType() == self::RETURN_ARRAY_AS_ERROR) {
3547+
if ($this->getInstanceArrayReturnType() == self::RETURN_ARRAY_AS_ERROR) {
35483548
return ExcelError::VALUE();
35493549
}
35503550
$result = array_shift($testResult);
@@ -5483,7 +5483,7 @@ public function extractCellRange(string &$range = 'A1', ?Worksheet $worksheet =
54835483
sscanf($reference, '%[A-Z]%d', $currentCol, $currentRow);
54845484
if ($worksheet !== null && $worksheet->cellExists($reference)) {
54855485
$temp = $worksheet->getCell($reference)->getCalculatedValue($resetLog);
5486-
if (self::getInstanceArrayReturnType() === self::RETURN_ARRAY_AS_ARRAY) {
5486+
if ($this->getInstanceArrayReturnType() === self::RETURN_ARRAY_AS_ARRAY) {
54875487
while (is_array($temp)) {
54885488
$temp = array_shift($temp);
54895489
}

0 commit comments

Comments
 (0)