From: Arthur Schiwon Date: Thu, 6 Jul 2023 11:33:32 +0000 (+0200) Subject: fix(LDAP): add return type hint and description X-Git-Tag: v27.1.0rc3~2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=00ac153ef78a6c3294629e44da5db9a164d6e29f;p=nextcloud-server.git fix(LDAP): add return type hint and description Signed-off-by: Arthur Schiwon --- diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index cc80ac7a875..da6cae39034 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -695,9 +695,9 @@ class User { /** * @brief attempts to get an image from LDAP and sets it as Nextcloud avatar - * @return bool + * @return bool true when the avatar was set successfully or is up to date */ - public function updateAvatar($force = false) { + public function updateAvatar(bool $force = false): bool { if (!$force && $this->wasRefreshed('avatar')) { return false; }