Skip to content

Commit 1d2916c

Browse files
committed
Adding function return type
1 parent 89f8939 commit 1d2916c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controllers/HomeController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
class HomeController
88
{
99

10-
function index()
10+
function index(): void // Just echo something
1111
{
1212
$response = [
1313
"status_code" => 200,
14-
"massage" => "Welcome"
14+
"data" => ["massage" => "Welcome"]
1515
];
1616

1717
$response = json_encode($response);

0 commit comments

Comments
 (0)