adjust group type hint for User API response

This commit is contained in:
Andreas Gohr 2024-02-06 13:32:25 +01:00
parent 932ec837f7
commit ab86a1cdff
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class User extends ApiResponse
public $name;
/** @var string The email address of the user */
public $mail;
/** @var array The groups the user is in */
/** @var string[] The groups the user is in */
public $groups;
/** @var bool Whether the user is a super user */
public bool $isadmin;
@ -24,7 +24,7 @@ class User extends ApiResponse
* @param string $login defaults to the current user
* @param string $name
* @param string $mail
* @param string $groups
* @param string[] $groups
*/
public function __construct($login = '', $name = '', $mail = '', $groups = [])
{