Skip to content

Commit 25a9d5b

Browse files
Update CSV.php
1 parent bad0cc6 commit 25a9d5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CSV.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function toCsv(array $header=NULL) : string {
340340
}
341341
}
342342
} else {
343-
$parseHeader = $this->header;
343+
$parseHeader = array_map('trim', $this->header);
344344
}
345345
if(!empty($parseHeader)) {
346346
$csvData .= implode($this->delimiter, $parseHeader).PHP_EOL;

0 commit comments

Comments
 (0)