diff --git a/src/TokenMapper.php b/src/TokenMapper.php index ab61f4d..9c5e2fc 100644 --- a/src/TokenMapper.php +++ b/src/TokenMapper.php @@ -54,7 +54,7 @@ private function write(string $requestId, string $debugToken): void throw new RuntimeException(sprintf('File [%s] not found', $this->path())); } - fputcsv($file, [$requestId, $debugToken]); + fputcsv($file, [$requestId, $debugToken], escape: ''); fclose($file); } @@ -73,7 +73,7 @@ private function load(): array throw new RuntimeException(sprintf('File [%s] not found', $this->path())); } - while ($row = fgetcsv($file)) { + while ($row = fgetcsv($file, escape: '')) { /** @var array{0: string, 1: string} $row */ $map[$row[0]] = $row[1]; }