Not sure why PHP 7.4 should suddenly have decided to report a notice in a totally unrelated part of the Xml Reader

This commit is contained in:
MarkBaker 2020-07-05 16:39:47 +02:00
parent d009347e25
commit 3997dcc3af
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ class Xml extends BaseReader
$columnReference = $columnNumber; $columnReference = $columnNumber;
} }
// Bracketed C references are relative to the current column // Bracketed C references are relative to the current column
if ($columnReference[0] == '[') { if (is_string($columnReference) && $columnReference[0] == '[') {
$columnReference = $columnNumber + trim($columnReference, '[]'); $columnReference = $columnNumber + trim($columnReference, '[]');
} }
$A1CellReference = Coordinate::stringFromColumnIndex($columnReference) . $rowReference; $A1CellReference = Coordinate::stringFromColumnIndex($columnReference) . $rowReference;