Empty style on cell

This commit is contained in:
Antoine Lamirault committed 2021-02-22 20:47:32 +01:00
1 parent 9a4f229774
commit 40bdc9c0f1
1 file changed
+2 -1
+2 -1
View File
@@ -2,6 +2,7 @@
namespace Box\Spout\Common\Entity; namespace Box\Spout\Common\Entity;
use Box\Spout\Common\Entity\Style\EmptyStyle;
use Box\Spout\Common\Entity\Style\Style; use Box\Spout\Common\Entity\Style\Style;
use Box\Spout\Common\Helper\CellTypeHelper; use Box\Spout\Common\Helper\CellTypeHelper;
@@ -104,7 +105,7 @@ class Cell
*/ */
public function setStyle($style) public function setStyle($style)
{ {
$this->style = $style ?: new Style(); $this->style = $style ?: new EmptyStyle();
} }
/** /**