From 40bdc9c0f11ed63fc5866c734fbb22ae6eae1ce7 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Tue, 25 Aug 2020 16:38:44 +0200 Subject: [PATCH] Empty style on cell --- src/Spout/Common/Entity/Cell.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Spout/Common/Entity/Cell.php b/src/Spout/Common/Entity/Cell.php index c1de389..6ffda46 100644 --- a/src/Spout/Common/Entity/Cell.php +++ b/src/Spout/Common/Entity/Cell.php @@ -2,6 +2,7 @@ namespace Box\Spout\Common\Entity; +use Box\Spout\Common\Entity\Style\EmptyStyle; use Box\Spout\Common\Entity\Style\Style; use Box\Spout\Common\Helper\CellTypeHelper; @@ -104,7 +105,7 @@ class Cell */ public function setStyle($style) { - $this->style = $style ?: new Style(); + $this->style = $style ?: new EmptyStyle(); } /**