diff --git a/src/CsvWriter.php b/src/CsvWriter.php index e20f288..10364ff 100644 --- a/src/CsvWriter.php +++ b/src/CsvWriter.php @@ -120,7 +120,7 @@ public function rowToStr(array $row) } $return[] = $this->getEnclosure() . - str_replace($this->getEnclosure(), str_repeat($this->getEnclosure(), 2), $column) . + str_replace($this->getEnclosure(), str_repeat($this->getEnclosure(), 2), $column ?? '') . $this->getEnclosure(); } return implode($this->getDelimiter(), $return) . $this->lineBreak;