Skip to content

Commit 2965a2d

Browse files
Bug fixes
1 parent 566a29a commit 2965a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CSV.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function parse($data) {
8080
//Parse user custom header
8181
if(empty($this->header) && !empty($rawData)) {
8282
if(isset($rawData[$this->headerOffset])) {
83-
$this->header = array_keys($rawData[$this->headerOffset]);
83+
$this->header = array_keys((array)$rawData[$this->headerOffset]);
8484
} else {
8585
throw new Exception('Error : header not found at offset '.$this->headerOffset);
8686
}

0 commit comments

Comments
 (0)