fix: Use correct casing for subname entry of users

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2024-11-14 17:48:41 +01:00
Родитель f1bed62803
Коммит aaace4dba6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: A3E2F658B28C760A
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -308,14 +308,14 @@ class UserBase implements JsonSerializable {
*
* @return (bool|string|string[])[]
*
* @psalm-return array{userId: string, displayName: string, emailAddress: string, subName: string, subtitle: string, isNoUser: bool, desc: string, type: string, id: string, user: string, organisation: string, languageCode: string, localeCode: string, timeZone: string, icon: string, categories: array<string>}
* @psalm-return array{userId: string, displayName: string, emailAddress: string, subname: string, subtitle: string, isNoUser: bool, desc: string, type: string, id: string, user: string, organisation: string, languageCode: string, localeCode: string, timeZone: string, icon: string, categories: array<string>}
*/
public function getRichUserArray(): array {
return [
'userId' => $this->getId(),
'displayName' => $this->getDisplayName(),
'emailAddress' => $this->getEmailAddress(),
'subName' => $this->getSubName(),
'subname' => $this->getSubName(),
'subtitle' => $this->getDescription(),
'isNoUser' => $this->getIsNoUser(),
'desc' => $this->getDescription(),