Loading src/Controller/DiffDaysController.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'])); } } Loading
src/Controller/DiffDaysController.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'])); } }