Skip to content

Commit 312c97b

Browse files
Merge pull request #2440 from hethehe/4.0
add missing cast to (int) for $page variable
2 parents 6a403e4 + 64a1070 commit 312c97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoreShop/Bundle/FrontendBundle/Controller/SearchController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function searchAction(Request $request): Response
4646
if ($form->isSubmitted() && $form->isValid()) {
4747
$formData = $form->getData();
4848
$text = $formData['text'];
49-
$page = $this->getParameterFromRequest($request, 'page', 1);
49+
$page = (int) $this->getParameterFromRequest($request, 'page', 1);
5050
$itemsPerPage = 10;
5151

5252
$query = [

0 commit comments

Comments
 (0)