From b6f9868042d68cd2c88337b0e507608357acc315 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sat, 23 Apr 2022 19:01:10 +0200 Subject: [PATCH] Quickfix - default Worksheet in CellAddress constructor to null --- src/PhpSpreadsheet/Cell/CellAddress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Cell/CellAddress.php b/src/PhpSpreadsheet/Cell/CellAddress.php index 192fcfe3..d587dcd1 100644 --- a/src/PhpSpreadsheet/Cell/CellAddress.php +++ b/src/PhpSpreadsheet/Cell/CellAddress.php @@ -32,7 +32,7 @@ class CellAddress */ protected $rowId; - public function __construct(string $cellAddress, ?Worksheet $worksheet) + public function __construct(string $cellAddress, ?Worksheet $worksheet = null) { $this->cellAddress = str_replace('$', '', $cellAddress); [$this->columnName, $rowId] = Coordinate::coordinateFromString($cellAddress);