Skip to content

Commit

Permalink
pass CSV escape characters explicitly
Browse files Browse the repository at this point in the history
Not passing the $escape parameter is deprecated since PHP 8.4 as the
default value will change in the future.
  • Loading branch information
xabbuh committed Sep 15, 2024
1 parent 1d702ca commit 6fed3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dumper/CsvFileDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function formatCatalogue(MessageCatalogue $messages, string $domain, arra
$handle = fopen('php://memory', 'r+');

foreach ($messages->all($domain) as $source => $target) {
fputcsv($handle, [$source, $target], $this->delimiter, $this->enclosure);
fputcsv($handle, [$source, $target], $this->delimiter, $this->enclosure, '\\');
}

rewind($handle);
Expand Down

0 comments on commit 6fed3a2

Please sign in to comment.