From 198bcdc70110525a93369d56bab12d20f0b5f394 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Wed, 14 Jun 2023 13:34:55 +0200 Subject: [PATCH] Update ApiAnrRisksOpController.php Added the 'limit' and 'page' params typecast to avoid fatal error. --- src/Controller/ApiAnrRisksOpController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/ApiAnrRisksOpController.php b/src/Controller/ApiAnrRisksOpController.php index 0f3c3a52..112a92b0 100644 --- a/src/Controller/ApiAnrRisksOpController.php +++ b/src/Controller/ApiAnrRisksOpController.php @@ -66,8 +66,8 @@ protected function parseParams(): array 'order' => $this->params()->fromQuery("order", "maxRisk"), 'order_direction' => $this->params()->fromQuery("order_direction", "desc"), 'thresholds' => $this->params()->fromQuery("thresholds"), - 'page' => $this->params()->fromQuery("page", 1), - 'limit' => $this->params()->fromQuery("limit", 50), + 'page' => (int)$this->params()->fromQuery("page", 1), + 'limit' => (int)$this->params()->fromQuery("limit", 50), ]; } }