From bb11d7aa78d8bd4edda9c1cf2c58081b9a3dc57c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 21 Aug 2026 16:17:55 +0200 Subject: [PATCH] fix(console): provide explicit escape parameter to fputcsv to prevent deprecation --- .../Console/Presenters/Security/AuditLogsView.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Presentation/Console/Presenters/Security/AuditLogsView.php b/src/Presentation/Console/Presenters/Security/AuditLogsView.php index 1475382..1481ced 100644 --- a/src/Presentation/Console/Presenters/Security/AuditLogsView.php +++ b/src/Presentation/Console/Presenters/Security/AuditLogsView.php @@ -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);