We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25b8ce9 + d89733f commit e7c21acCopy full SHA for e7c21ac
lib/moodlelib.php
@@ -4091,15 +4091,12 @@ function update_user_record($username) {
4091
}
4092
4093
/**
4094
- * Will truncate userinfo as it comes from auth_get_userinfo (from external auth)
4095
- * which may have large fields
4096
- *
4097
- * @todo Add vartype handling to ensure $info is an array
+ * Will truncate userinfo as it comes from auth_get_userinfo (from external auth) which may have large fields.
4098
*
4099
* @param array $info Array of user properties to truncate if needed
4100
* @return array The now truncated information that was passed in
4101
*/
4102
-function truncate_userinfo($info) {
+function truncate_userinfo(array $info) {
4103
// Define the limits.
4104
$limit = array(
4105
'username' => 100,
0 commit comments