diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-06-20 15:10:39 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-06-20 15:10:39 +0200 |
commit | 1603cdc8d2798ddc2799a75deaf42b58515f84cd (patch) | |
tree | 010d8d9371fc2e7a42c83dcbef085909c2839d59 /apps | |
parent | 367b4fe9f2361e9982dcd6e1e836f0bd3d37ce71 (diff) | |
download | nextcloud-server-1603cdc8d2798ddc2799a75deaf42b58515f84cd.tar.gz nextcloud-server-1603cdc8d2798ddc2799a75deaf42b58515f84cd.zip |
Fix since annotations and add boolean return type for setUserEnabled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/User_LDAP.php | 3 | ||||
-rw-r--r-- | apps/user_ldap/lib/User_Proxy.php | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index fcd5a009e41..d4a851bd7aa 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -677,7 +677,8 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I } } - public function setUserEnabled(string $uid, bool $enabled, callable $queryDatabaseValue, callable $setDatabaseValue): void { + public function setUserEnabled(string $uid, bool $enabled, callable $queryDatabaseValue, callable $setDatabaseValue): bool { $setDatabaseValue($enabled); + return $enabled; } } diff --git a/apps/user_ldap/lib/User_Proxy.php b/apps/user_ldap/lib/User_Proxy.php index c95329cebed..e0f1bb2d522 100644 --- a/apps/user_ldap/lib/User_Proxy.php +++ b/apps/user_ldap/lib/User_Proxy.php @@ -458,7 +458,7 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP return $this->handleRequest($uid, 'isUserEnabled', [$uid, $queryDatabaseValue]); } - public function setUserEnabled(string $uid, bool $enabled, callable $queryDatabaseValue, callable $setDatabaseValue): void { - $this->handleRequest($uid, 'setUserEnabled', [$uid, $enabled, $queryDatabaseValue, $setDatabaseValue]); + public function setUserEnabled(string $uid, bool $enabled, callable $queryDatabaseValue, callable $setDatabaseValue): bool { + return $this->handleRequest($uid, 'setUserEnabled', [$uid, $enabled, $queryDatabaseValue, $setDatabaseValue]); } } |