From 3997dcc3af1c9b7459e20d1348c9d9b52eb432f4 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 5 Jul 2020 16:39:47 +0200 Subject: [PATCH] Not sure why PHP 7.4 should suddenly have decided to report a notice in a totally unrelated part of the Xml Reader --- src/PhpSpreadsheet/Reader/Xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;