Add type hinting to get_course_time()

This commit is contained in:
Mark Nelson 2021-04-05 20:11:02 +08:00
parent 6e89c1d921
commit 47061f8737

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)) {