From 06ac412f0f37e8a3cdc354b07d6cd0b6a6634777 Mon Sep 17 00:00:00 2001
From: "Alex. Plokhikh" <a.plohih@iqdev.digital>
Date: Wed, 17 Apr 2024 10:26:11 +0500
Subject: [PATCH] chenge array indexation

---
 src/Controller/DiffDaysController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Controller/DiffDaysController.php b/src/Controller/DiffDaysController.php
index a82687e..7dc8cd8 100644
--- a/src/Controller/DiffDaysController.php
+++ b/src/Controller/DiffDaysController.php
@@ -21,6 +21,6 @@ class DiffDaysController extends AbstractController
     public function index(DiffDaysRequest $request, DiffDaysAction $action): Response
     {
         $array = $request->serialise();
-        return new JsonResponse($action->act($array[0], $array[1]));
+        return new JsonResponse($action->act($array['startDate'], $array['endDate']));
     }
 }
-- 
GitLab