mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-78907 mod_bigbluebuttonbn: Use the correct parameter type for id
This commit is contained in:
parent
4062dfaafd
commit
ee45e0cbef
@ -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])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user