diff --git a/src/Controller/DiffDaysController.php b/src/Controller/DiffDaysController.php index a82687ee8d4a3e5b04d1d3a6dd96ee7dce08e3ce..7dc8cd80893a2738cbc5eec8998572c3bee67e7c 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'])); } }