]> BookStack Code Mirror - bookstack/blobdiff - app/Users/UserRepo.php
respective book and chapter structure added.
[bookstack] / app / Users / UserRepo.php
index 32e23ecdec132aced9684ab4413d86b2d50641a3..5c8ace8facade25f25412b7b63800ca560ada235 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace BookStack\Users;
 
+use BookStack\Access\UserInviteException;
 use BookStack\Access\UserInviteService;
 use BookStack\Activity\ActivityType;
 use BookStack\Entities\EntityProvider;
@@ -83,6 +84,7 @@ class UserRepo
      * As per "createWithoutActivity" but records a "create" activity.
      *
      * @param array{name: string, email: string, password: ?string, external_auth_id: ?string, language: ?string, roles: ?array} $data
+     * @throws UserInviteException
      */
     public function create(array $data, bool $sendInvite = false): User
     {