Empty style on cell

This commit is contained in:
Antoine Lamirault 2020-08-25 16:38:44 +02:00
parent 9a4f229774
commit 40bdc9c0f1

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