From f35c6025625ff42e6704f34fd310ee1bdf5bd136 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 19 Nov 2024 13:16:22 +1300 Subject: [PATCH] Fix #777 Fix #784 --- classes/import/marksessions.php | 2 +- classes/import/sessions.php | 2 +- classes/summary.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/import/marksessions.php b/classes/import/marksessions.php index a69b908c89..adec3062d7 100644 --- a/classes/import/marksessions.php +++ b/classes/import/marksessions.php @@ -137,7 +137,7 @@ protected function get_column_data($row, $index) { * @param string $encoding The encoding of the csv file. * @param string $delimiter The specified delimiter for the file. * @param string $importid The id of the csv import. - * @param array $mappingdata The mapping data from the import form. + * @param stdClass $mappingdata The mapping data from the import form. * @param bool $useprogressbar Whether progress bar should be displayed, to avoid html output on CLI. */ public function __construct($att, $text = null, $encoding = null, $delimiter = null, $importid = 0, diff --git a/classes/import/sessions.php b/classes/import/sessions.php index 2ecb6f1c03..4d1ff2de1d 100644 --- a/classes/import/sessions.php +++ b/classes/import/sessions.php @@ -204,7 +204,7 @@ protected function get_column_data($row, $index) { * @param string $encoding The encoding of the csv file. * @param string $delimiter The specified delimiter for the file. * @param string $importid The id of the csv import. - * @param array $mappingdata The mapping data from the import form. + * @param stdClass $mappingdata The mapping data from the import form. * @param bool $useprogressbar Whether progress bar should be displayed, to avoid html output on CLI. * @param bool $courseshortname Course shortname for the course level imports. * @param bool $attendanceid ID for the attendance activity for course level imports. diff --git a/classes/summary.php b/classes/summary.php index b1049ea075..ff4da3b91f 100644 --- a/classes/summary.php +++ b/classes/summary.php @@ -116,7 +116,7 @@ public function get_user_taken_sessions_percentages() { * * @param int $userid User instance id * - * @return array + * @return stdClass */ public function get_taken_sessions_summary_for($userid) { $usersummary = new stdClass();