From e72c2b91af1709a2eff6c07baafe5fd8c9776c23 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Wed, 20 Nov 2024 20:40:35 +0100 Subject: [PATCH] Added the random string generation. --- src/Service/ClientService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/ClientService.php b/src/Service/ClientService.php index 0132552..a80e261 100644 --- a/src/Service/ClientService.php +++ b/src/Service/ClientService.php @@ -385,7 +385,7 @@ private function createJsonFileWithDataContent($path, array $data): void ); } - $filename = $path . date('YmdHisU') . '.json'; + $filename = $path . date('YmdHis') . random_int(10000, 100000) . '.json'; file_put_contents($filename, json_encode($data, JSON_THROW_ON_ERROR)); }