From 4273b8d490ab768a6bdaf9ec5fbedaef60d673e4 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Fri, 12 Jul 2024 11:03:48 +0300 Subject: [PATCH] some fix --- app/controllers/QuestionController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }