From 452572bf726e36d3e8e36bc6fc2a4667cccbbcdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Fri, 9 Jan 2026 15:52:47 +0100 Subject: [PATCH] fix: Make User_Proxy IGetDisplayNameBackend complient MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- apps/user_ldap/lib/User_Proxy.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/lib/User_Proxy.php b/apps/user_ldap/lib/User_Proxy.php index 0d41f495ce9ba..a4a44362ae492 100644 --- a/apps/user_ldap/lib/User_Proxy.php +++ b/apps/user_ldap/lib/User_Proxy.php @@ -13,6 +13,7 @@ use OCP\IUserBackend; use OCP\Notification\IManager as INotificationManager; use OCP\User\Backend\ICountMappedUsersBackend; +use OCP\User\Backend\IGetDisplayNameBackend; use OCP\User\Backend\ILimitAwareCountUsersBackend; use OCP\User\Backend\IProvideEnabledStateBackend; use OCP\UserInterface; @@ -21,7 +22,7 @@ /** * @template-extends Proxy */ -class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP, ILimitAwareCountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend { +class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP, ILimitAwareCountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend, IGetDisplayNameBackend { public function __construct( private Helper $helper, ILDAPWrapper $ldap, @@ -253,7 +254,7 @@ public function getHome($uid) { * @param string $uid user ID of the user * @return string display name */ - public function getDisplayName($uid) { + public function getDisplayName($uid): string { return $this->handleRequest($uid, 'getDisplayName', [$uid]); }