fix(console): provide explicit escape parameter to fputcsv to prevent deprecation

This commit is contained in:
Jérémy Munsch 2026-08-21 16:17:55 +02:00
parent 891b21ba61
commit bb11d7aa78
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -31,7 +31,7 @@ final readonly class AuditLogsView
throw new \UnexpectedValueException('Failed to create temporary stream for CSV generation.');
}
fputcsv($handle, $this->headers);
fputcsv($handle, $this->headers, ',', '"', '\\');
foreach ($this->rows as $row) {
fputcsv($handle, [
@ -40,7 +40,7 @@ final readonly class AuditLogsView
$row->clientIdentifier,
$row->clientId->toString(),
$row->details,
]);
], ',', '"', '\\');
}
rewind($handle);