Skip to content

Commit a405ca0

Browse files
committed
Valid Scrutinizer Messages
1 parent b00dd47 commit a405ca0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PhpSpreadsheet/Calculation/Calculation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3542,7 +3542,7 @@ public function calculateCellValue(?Cell $cell = null, bool $resetLog = true): m
35423542
throw new Exception($e->getMessage(), $e->getCode(), $e);
35433543
}
35443544

3545-
if (is_array($result) && self::getInstanceArrayReturnType() !== self::RETURN_ARRAY_AS_ARRAY) {
3545+
if (is_array($result) && $this->getInstanceArrayReturnType() !== self::RETURN_ARRAY_AS_ARRAY) {
35463546
$testResult = Functions::flattenArray($result);
35473547
if (self::getInstanceArrayReturnType() == self::RETURN_ARRAY_AS_ERROR) {
35483548
return ExcelError::VALUE();
@@ -5003,7 +5003,7 @@ private function processTokenStack(mixed $tokens, ?string $cellID = null, ?Cell
50035003
}
50045004
}
50055005

5006-
if (self::getInstanceArrayReturnType() === self::RETURN_ARRAY_AS_ARRAY && !$this->processingAnchorArray && is_array($cellValue)) {
5006+
if ($this->getInstanceArrayReturnType() === self::RETURN_ARRAY_AS_ARRAY && !$this->processingAnchorArray && is_array($cellValue)) {
50075007
while (is_array($cellValue)) {
50085008
$cellValue = array_shift($cellValue);
50095009
}
@@ -5467,7 +5467,7 @@ public function extractCellRange(string &$range = 'A1', ?Worksheet $worksheet =
54675467
sscanf($aReferences[0], '%[A-Z]%d', $currentCol, $currentRow);
54685468
if ($worksheet !== null && $worksheet->cellExists($aReferences[0])) {
54695469
$temp = $worksheet->getCell($aReferences[0])->getCalculatedValue($resetLog);
5470-
if (self::getInstanceArrayReturnType() === self::RETURN_ARRAY_AS_ARRAY) {
5470+
if ($this->getInstanceArrayReturnType() === self::RETURN_ARRAY_AS_ARRAY) {
54715471
while (is_array($temp)) {
54725472
$temp = array_shift($temp);
54735473
}

0 commit comments

Comments
 (0)