Skip to content

Commit 0b471ef

Browse files
committed
Dead Code, and 1 Static Call to Non-Static
1 parent 2c9e2e2 commit 0b471ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PhpSpreadsheet/Calculation/Internal/ExcelArrayPseudoFunctions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function single(string $cellReference, Cell $cell): array|string
2929

3030
public static function anchorArray(string $cellReference, Cell $cell): array|string
3131
{
32-
$coordinate = $cell->getCoordinate();
32+
//$coordinate = $cell->getCoordinate();
3333
$worksheet = $cell->getWorksheet();
3434

3535
[$referenceWorksheetName, $referenceCellCoordinate] = Worksheet::extractSheetTitle($cellReference, true);
@@ -40,7 +40,7 @@ public static function anchorArray(string $cellReference, Cell $cell): array|str
4040
->getCell((string) $referenceCellCoordinate);
4141

4242
// We should always use the sizing for the array formula range from the referenced cell formula
43-
$referenceRange = null;
43+
//$referenceRange = null;
4444
/*if ($referenceCell->isFormula() && $referenceCell->isArrayFormula()) {
4545
$referenceRange = $referenceCell->arrayFormulaRange();
4646
}*/

src/PhpSpreadsheet/Worksheet/Worksheet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3071,7 +3071,7 @@ public function toArray(
30713071
): array {
30723072
// Garbage collect...
30733073
$this->garbageCollect();
3074-
self::calculateArrays($calculateFormulas);
3074+
$this->calculateArrays($calculateFormulas);
30753075

30763076
// Identify the range that we need to extract from the worksheet
30773077
$maxCol = $this->getHighestColumn();

0 commit comments

Comments
 (0)