Skip to content

Commit

Permalink
Default value for escape parameter in fputcsv() is deprecated in PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Nov 22, 2024
1 parent 90e0ebb commit 66ca1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/RequestHandlers/MapDataExportCSV.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ public function handle(ServerRequestInterface $request): ResponseInterface
throw new RuntimeException('Failed to create temporary stream');
}

fputcsv($resource, $header, MapDataService::CSV_SEPARATOR);
fputcsv($resource, $header, MapDataService::CSV_SEPARATOR, '"', '\\');

foreach ($places as $place) {
fputcsv($resource, $place, MapDataService::CSV_SEPARATOR);
fputcsv($resource, $place, MapDataService::CSV_SEPARATOR, '"', '\\');
}

rewind($resource);
Expand Down

0 comments on commit 66ca1b0

Please sign in to comment.