Skip to content

Commit 08472f1

Browse files
authored
Merge pull request #62 from repat/master
Hotfix
2 parents edcc239 + e23141c commit 08472f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Sentiment/Vader.php

+4
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ public function getLexicon() : array
414414

415415
fclose($fh);
416416

417+
$rows = array_filter($rows, function ($row) {
418+
return is_array($row);
419+
});
420+
417421
foreach($rows as $row)
418422
{
419423
$this->lexicon[$row[0]] = $row[1];

0 commit comments

Comments
 (0)