diff --git a/src/PhpSpreadsheet/Reader/Xml.php b/src/PhpSpreadsheet/Reader/Xml.php index 9ea0a82d..cefcd336 100644 --- a/src/PhpSpreadsheet/Reader/Xml.php +++ b/src/PhpSpreadsheet/Reader/Xml.php @@ -570,7 +570,7 @@ class Xml extends BaseReader $columnReference = $columnNumber; } // Bracketed C references are relative to the current column - if ($columnReference[0] == '[') { + if (is_string($columnReference) && $columnReference[0] == '[') { $columnReference = $columnNumber + trim($columnReference, '[]'); } $A1CellReference = Coordinate::stringFromColumnIndex($columnReference) . $rowReference;