Skip to content

Commit 5475b2d

Browse files
committed
minor #20832 [Routing] Add missing type hint (silasjoisten)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Routing] Add missing type hint <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 2153ebb Add type hint
2 parents 708945f + 2153ebb commit 5475b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ the ``{page}`` parameter using the ``requirements`` option:
595595
}
596596
597597
#[Route('/blog/{slug}', name: 'blog_show')]
598-
public function show($slug): Response
598+
public function show(string $slug): Response
599599
{
600600
// ...
601601
}

0 commit comments

Comments
 (0)