diff --git a/src/Bridge/OpenSpout/Exporter/Type/AbstractOpenSpoutExporterType.php b/src/Bridge/OpenSpout/Exporter/Type/AbstractOpenSpoutExporterType.php index 48462a34..7a683175 100644 --- a/src/Bridge/OpenSpout/Exporter/Type/AbstractOpenSpoutExporterType.php +++ b/src/Bridge/OpenSpout/Exporter/Type/AbstractOpenSpoutExporterType.php @@ -93,8 +93,14 @@ protected function getValueRowCells(ValueRowView $view, array $options): array protected function getValueCell(ColumnValueView $view, array $options): Cell { + $value = $view->vars['value']; + + if ($value instanceof \Stringable) { + $value = (string) $value; + } + return Cell::fromValue( - value: $view->vars['value'], + value: $value, style: $this->getStyle($view, 'value_cell_style', $options), ); }