Empty style on cell

This commit is contained in:
Antoine Lamirault authored and Adrien Loison committed 2021-03-30 19:42:21 +02:00
1 parent 57b6e87a65
commit a58b340835
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();
} }
/** /**