MDL-78907 mod_bigbluebuttonbn: Use the correct parameter type for id

This commit is contained in:
Huong Nguyen 2023-08-31 10:15:47 +07:00
parent 4062dfaafd
commit ee45e0cbef
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -135,12 +135,12 @@ class instance {
*
* Used by self::get_from_id and self::get_cmid.
*
* @param string $id The id to look for.
* @param int $id The id to look for.
* @param int $idtype self::IDTYPE_CMID or self::IDTYPE_INSTANCEID
* @return null|self
* @throws \moodle_exception
*/
private static function get_instance_info_retriever(string $id, int $idtype = self::IDTYPE_INSTANCEID): ?self {
private static function get_instance_info_retriever(int $id, int $idtype = self::IDTYPE_INSTANCEID): ?self {
global $DB;
if (!in_array($idtype, [self::IDTYPE_CMID, self::IDTYPE_INSTANCEID])) {