diff --git a/routing.rst b/routing.rst index 91dabffec75..b41371f42ce 100644 --- a/routing.rst +++ b/routing.rst @@ -1180,7 +1180,7 @@ the common configuration using options when importing the routes. /** * @Route("/{_locale}/posts/{slug}", name="show") */ - public function show(Post $post): Response + public function show(string $slug): Response { // ... }