diff --git a/app/controllers/QuestionController.php b/app/controllers/QuestionController.php index 348ab34..da237d2 100644 --- a/app/controllers/QuestionController.php +++ b/app/controllers/QuestionController.php @@ -4,17 +4,17 @@ namespace app\controllers; use app\models\Question; class QuestionController{ - public function actionCreate() + public function actionCreate(): void { require "app/views/questionCreate.php"; } - public function actionGetQuestionsWithAnswers() + public function actionGetQuestionsWithAnswers(): array { return Question::with('AnswerController')->get()->toArray(); } - public function actionGetQuestionsWithUsers() + public function actionGetQuestionsWithUsers(): array { return Question::with('user')->get()->toArray(); }