Skip to content

Commit

Permalink
[PHPDoc] Added missing throw annotations to UserService::loadUserBy*
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jul 4, 2024
1 parent ec37cf8 commit 7bdf4f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/contracts/Repository/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function loadUser(int $userId, array $prioritizedLanguages = []): User;
* @return \Ibexa\Contracts\Core\Repository\Values\User\User
*
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException if a user with the given credentials was not found
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
*/
public function loadUserByLogin(string $login, array $prioritizedLanguages = []): User;

Expand All @@ -187,6 +188,7 @@ public function checkUserCredentials(User $user, string $credentials): bool;
* @return \Ibexa\Contracts\Core\Repository\Values\User\User
*
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException
*/
public function loadUserByEmail(string $email, array $prioritizedLanguages = []): User;

Expand Down

0 comments on commit 7bdf4f1

Please sign in to comment.