Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Service/SearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Exception;
use OC\FullTextSearch\Model\DocumentAccess;
use OC\User\NoUserException;
use OCA\Circles\CirclesManager;
use OCA\Circles\Model\Circle;
use OCA\FullTextSearch\Exceptions\EmptySearchException;
Expand All @@ -27,6 +26,7 @@
use OCP\IGroupManager;
use OCP\IUser;
use OCP\IUserManager;
use OCP\User\Exceptions\UserNotFoundException;

class SearchService implements ISearchService {

Expand Down Expand Up @@ -65,7 +65,7 @@ public function search(string $userId, ISearchRequest $searchRequest): array {

$user = $this->userManager->get($userId);
if ($user === null) {
throw new NoUserException('User does not exist');
throw new UserNotFoundException('User does not exist');
}

/** @var SearchRequest $searchRequest */
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ parameters:
- tests/stubs/oc_fulltextsearch_mode_searchtemplate.stub
- tests/stubs/oc_core_command_base.php
- tests/stubs/oc_core_interruptedexception.stub
- tests/stubs/oc_user_nouserexception.stub
- tests/stubs/oc_forbiddenexception.stub
- tests/stubs/oc_db_connectionadapter.php
- tests/stubs/oca_circles_circlesmanager.php
Expand Down
7 changes: 0 additions & 7 deletions tests/stubs/oc_user_nouserexception.stub

This file was deleted.

Loading