From e5409f0fed230b8cfe8aeb8a587c29322bd06e46 Mon Sep 17 00:00:00 2001 From: Roland Eigelsreiter Date: Tue, 29 Oct 2019 10:24:35 +0100 Subject: [PATCH] fix access error Fix the error "Trying to access array offset on value of type null" --- src/PhpSpreadsheet/Reader/Xlsx/Styles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Reader/Xlsx/Styles.php b/src/PhpSpreadsheet/Reader/Xlsx/Styles.php index af52a6b2..c98780b0 100644 --- a/src/PhpSpreadsheet/Reader/Xlsx/Styles.php +++ b/src/PhpSpreadsheet/Reader/Xlsx/Styles.php @@ -163,7 +163,7 @@ class Styles extends BaseParserClass self::readBorderStyle($docStyle->getBorders(), $style->border); } - if (isset($style->alignment)) { + if (isset($style->alignment->alignment)) { self::readAlignmentStyle($docStyle->getAlignment(), $style->alignment); }