Skip to content

Commit 80486e7

Browse files
committed
minor #16116 Update page_creation.rst (94noni)
This PR was submitted for the 5.4 branch but it was merged into the 5.3 branch instead. Discussion ---------- Update page_creation.rst Code snippet before (`Creating a Page: Route and Controller`) and after (`Rendering a Template`) of this controller exemple have this return, I think it is missed here, wdyt? Commits ------- 2075bb9 Update page_creation.rst
2 parents 21d9cb1 + 2075bb9 commit 80486e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

page_creation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ You can now add your route directly *above* the controller:
118118
+ /**
119119
+ * @Route("/lucky/number")
120120
+ */
121-
public function number()
121+
public function number(): Response
122122
{
123123
// this looks exactly the same
124124
}
@@ -134,7 +134,7 @@ You can now add your route directly *above* the controller:
134134
class LuckyController
135135
{
136136
+ #[Route('/lucky/number')]
137-
public function number()
137+
public function number(): Response
138138
{
139139
// this looks exactly the same
140140
}

0 commit comments

Comments
 (0)