From aa5ec507c23cd770d557c8cf9538dd91ab11202b Mon Sep 17 00:00:00 2001 From: Alexander Hofstede Date: Thu, 19 Dec 2019 23:05:16 +0100 Subject: [PATCH] Set empty array as default for column widths --- src/Spout/Writer/Common/Manager/ManagesCellSize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spout/Writer/Common/Manager/ManagesCellSize.php b/src/Spout/Writer/Common/Manager/ManagesCellSize.php index 44cf2a1..60de4cf 100644 --- a/src/Spout/Writer/Common/Manager/ManagesCellSize.php +++ b/src/Spout/Writer/Common/Manager/ManagesCellSize.php @@ -13,7 +13,7 @@ trait ManagesCellSize private $defaultRowHeight; /** @var array Array of min-max-width arrays */ - private $columnWidths; + private $columnWidths = []; /** * @param float|null $width