]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(LDAP): add return type hint and description 40369/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 6 Jul 2023 11:33:32 +0000 (13:33 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 11 Sep 2023 17:53:16 +0000 (17:53 +0000)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/User/User.php

index cc80ac7a8751bc2e002499956101e9d9788e05b9..da6cae390349e00f75b8a2a6efdf72f779a8076d 100644 (file)
@@ -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;
                }