Skip to content

Commit 2075bb9

Browse files
94nonijaviereguiluz
authored andcommitted
Update page_creation.rst
1 parent 21d9cb1 commit 2075bb9

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)