Skip to content

Commit 452572b

Browse files
SystemKeeperbackportbot[bot]
authored andcommitted
fix: Make User_Proxy IGetDisplayNameBackend complient
Signed-off-by: Marcel Müller <[email protected]>
1 parent ee4ddc6 commit 452572b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/user_ldap/lib/User_Proxy.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use OCP\IUserBackend;
1414
use OCP\Notification\IManager as INotificationManager;
1515
use OCP\User\Backend\ICountMappedUsersBackend;
16+
use OCP\User\Backend\IGetDisplayNameBackend;
1617
use OCP\User\Backend\ILimitAwareCountUsersBackend;
1718
use OCP\User\Backend\IProvideEnabledStateBackend;
1819
use OCP\UserInterface;
@@ -21,7 +22,7 @@
2122
/**
2223
* @template-extends Proxy<User_LDAP>
2324
*/
24-
class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP, ILimitAwareCountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend {
25+
class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP, ILimitAwareCountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend, IGetDisplayNameBackend {
2526
public function __construct(
2627
private Helper $helper,
2728
ILDAPWrapper $ldap,
@@ -253,7 +254,7 @@ public function getHome($uid) {
253254
* @param string $uid user ID of the user
254255
* @return string display name
255256
*/
256-
public function getDisplayName($uid) {
257+
public function getDisplayName($uid): string {
257258
return $this->handleRequest($uid, 'getDisplayName', [$uid]);
258259
}
259260

0 commit comments

Comments
 (0)