Skip to content

Commit ba2d417

Browse files
committed
Fix deprecation in tests
1 parent 2fb60e2 commit ba2d417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/Controller/SampleController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ public function categoryIndexAction(Request $request): Response
7676
return $this->respond($request, $categories);
7777
}
7878

79-
public function showAction(Request $request): Response
79+
public function showAction(Request $request, int $id): Response
8080
{
8181
$productRepository = $this->objectManager->getRepository(Product::class);
82-
$product = $productRepository->find($request->get('id'));
82+
$product = $productRepository->find($id);
8383

8484
if (!$product) {
8585
throw new NotFoundHttpException();

0 commit comments

Comments
 (0)