Skip to content

Commit

Permalink
Merge pull request #2440 from hethehe/4.0
Browse files Browse the repository at this point in the history
add missing cast to (int) for $page variable
  • Loading branch information
dpfaffenbauer authored Nov 7, 2023
2 parents 6a403e4 + 64a1070 commit 312c97b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function searchAction(Request $request): Response
if ($form->isSubmitted() && $form->isValid()) {
$formData = $form->getData();
$text = $formData['text'];
$page = $this->getParameterFromRequest($request, 'page', 1);
$page = (int) $this->getParameterFromRequest($request, 'page', 1);
$itemsPerPage = 10;

$query = [
Expand Down

0 comments on commit 312c97b

Please sign in to comment.