From 2153ebbc5dc3918794514e16004ae497a4b84cf6 Mon Sep 17 00:00:00 2001 From: Silas Joisten Date: Wed, 26 Mar 2025 11:03:49 +0200 Subject: [PATCH] Add type hint --- routing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing.rst b/routing.rst index 7d489912345..79a513ba8dd 100644 --- a/routing.rst +++ b/routing.rst @@ -595,7 +595,7 @@ the ``{page}`` parameter using the ``requirements`` option: } #[Route('/blog/{slug}', name: 'blog_show')] - public function show($slug): Response + public function show(string $slug): Response { // ... }