From a58b340835be5f3469cca9b7060162159f8aea7c 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(); } /**