diff --git a/app/Models/User.php b/app/Models/User.php index e2219b9bc..39900dd8a 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -578,13 +578,17 @@ class User extends Authenticatable } /** - * Add a new user. - * - * @return bool|int - * - * @throws \Exception + * @param string $userName + * @param string $password + * @param string $email + * @param int $role + * @param string|null $notes + * @param string $host + * @param int $invites + * @param int $invitedBy + * @return false|int|mixed */ - public static function add(string $userName, string $password, string $email, int $role, string $notes = '', string $host = '', int $invites = Invitation::DEFAULT_INVITES, int $invitedBy = 0) + public static function add(string $userName, string $password, string $email, int $role, string|null $notes = '', string $host = '', int $invites = Invitation::DEFAULT_INVITES, int $invitedBy = 0) { $password = self::hashPassword($password); if (! $password) {