diff options
author | Marc Hefter <marchefter@march42.net> | 2023-02-14 13:15:49 +0100 |
---|---|---|
committer | Marc Hefter <marchefter@gmail.com> | 2023-04-06 08:20:25 +0200 |
commit | 44065c0fea21f554725d81d37cc0133717114119 (patch) | |
tree | 39dde00f465a4a661110a55b359a049716fae96e /apps/user_ldap/lib | |
parent | 26aa1c3580374024d91184ddf50d1085c00a0288 (diff) | |
download | nextcloud-server-44065c0fea21f554725d81d37cc0133717114119.tar.gz nextcloud-server-44065c0fea21f554725d81d37cc0133717114119.zip |
Fix: Parameter $scope has no provided type
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marc Hefter <marchefter@march42.net>
Signed-off-by: Marc Hefter <marchefter@gmail.com>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/User/User.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index 28d43b81f46..c08847b9db8 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -576,9 +576,8 @@ class User { /** * fetches values from LDAP and stores it as Nextcloud user value * @param string $valueFromLDAP if known, to save an LDAP read request - * @return null */ - private function updateProfile(string $property, $valueFromLDAP, $scope=null) { + private function updateProfile(string $property, $valueFromLDAP, ?string $scope=null): void { // check for valid property and set corresponding profile property $profileProperty = 'INVALID'; if (self::USER_PREFKEY_PHONE == $property) { @@ -628,11 +627,11 @@ class User { } $this->logger->debug('property updated: '.$profileProperty.'='.$value.' for user '.$this->getUsername().'', ['app' => 'user_ldap']); $this->config->setUserValue($this->getUsername(), 'user_ldap', $property, $value); - return $value; + return; } else { // FIXME: I decided, to leave profile untouched, if attribute gets removed from LDAP $this->config->deleteUserValue($this->getUsername(), 'user_ldap', $property); - return ''; + return; } } |