Skip to content

Commit 92eee08

Browse files
committed
fix: setting of headers
1 parent 06ce49c commit 92eee08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CsvFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __destruct()
6666
public function headers(array $fields): CsvFile
6767
{
6868
if ($this->isEmpty()) {
69-
$this->append(array_keys($fields));
69+
$this->append($fields);
7070
}
7171

7272
return $this;

0 commit comments

Comments
 (0)