Skip to content

Commit

Permalink
Apply the EscapeFormula CSV formatter (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
BelleNottelling committed Jun 30, 2023
1 parent cf00611 commit 9402d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/di.php
Expand Up @@ -775,8 +775,8 @@
$headers = array_keys(reset($rows));
}

$csv = League\Csv\Writer::createFromFileObject(new SplTempFileObject());

$csv = League\Csv\Writer::createFromFileObject(new SplTempFileObject);
$csv->addFormatter(new League\Csv\EscapeFormula);
$csv->insertOne($headers);
$csv->insertAll($rows);

Expand Down

0 comments on commit 9402d6c

Please sign in to comment.