Skip to content

Commit

Permalink
Update ApiAnrRisksOpController.php
Browse files Browse the repository at this point in the history
Added the 'limit' and 'page' params typecast to avoid fatal error.
  • Loading branch information
ruslanbaidan authored Jun 14, 2023
1 parent d0abecf commit 198bcdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/ApiAnrRisksOpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
];
}
}

0 comments on commit 198bcdc

Please sign in to comment.