Add type hinting to get_course_time()

This commit is contained in:
Mark Nelson 2021-04-05 20:11:02 +08:00
parent 54be90f5c4
commit 52be3400f7

View file

@ -175,7 +175,7 @@ class certificate {
* @param int $userid
* @return int the total time spent in seconds
*/
public static function get_course_time($courseid, $userid = 0) {
public static function get_course_time(int $courseid, int $userid = 0): int {
global $CFG, $DB, $USER;
if (empty($userid)) {