fix(console): provide explicit escape parameter to fputcsv to prevent deprecation
This commit is contained in:
parent
891b21ba61
commit
bb11d7aa78
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue