Skip to content

Commit

Permalink
Empty style on cell
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault authored and adrilo committed Mar 30, 2021
1 parent 57b6e87 commit a58b340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Spout/Common/Entity/Cell.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -104,7 +105,7 @@ public function getValueEvenIfError()
*/
public function setStyle($style)
{
$this->style = $style ?: new Style();
$this->style = $style ?: new EmptyStyle();
}

/**
Expand Down

0 comments on commit a58b340

Please sign in to comment.