Return types

This commit is contained in:
2024-07-22 02:36:28 +02:00
parent af588ab174
commit 2168e37413
12 changed files with 35 additions and 46 deletions
+3 -2
View File
@@ -9,9 +9,10 @@ use Khofmann\Response\Response;
class Logout extends Api
{
public function post()
public function post(): void
{
$token = Request::header("token");
return Response::json(User::getByToken($token)->logOut());
Response::json(User::getByToken($token)->logOut());
}
}