summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-08 14:25:09 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-02-08 14:25:09 +0100
commit5f65d5a58d6024e352ad16e2e0d38e7df68bab6f (patch)
tree99d5f743f935f20b3a2563fdf5e3883d5f400e08
parent2a0b2250d2038c4646de9098a890fa3f45a8c7dd (diff)
downloadnextcloud-server-5f65d5a58d6024e352ad16e2e0d38e7df68bab6f.tar.gz
nextcloud-server-5f65d5a58d6024e352ad16e2e0d38e7df68bab6f.zip
Add a comment explaining how Helper::loginName2UserName can work
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/user_ldap/lib/Helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Helper.php b/apps/user_ldap/lib/Helper.php
index 045f67e4a7f..437fab6b6a8 100644
--- a/apps/user_ldap/lib/Helper.php
+++ b/apps/user_ldap/lib/Helper.php
@@ -275,10 +275,10 @@ class Helper {
* listens to a hook thrown by server2server sharing and replaces the given
* login name by a username, if it matches an LDAP user.
*
- * @param array $param
+ * @param array $param contains a reference to a $uid var under 'uid' key
* @throws \Exception
*/
- public static function loginName2UserName($param) {
+ public static function loginName2UserName($param): void {
if (!isset($param['uid'])) {
throw new \Exception('key uid is expected to be set in $param');
}