add @throws BadRequestException to create user

This commit is contained in:
Yisroel Baum 2026-04-19 23:23:26 +03:00
parent a8bc84f246
commit 03e4781799
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -12,6 +12,9 @@ class CreateUser
private UserRepository $userRepo,
) {}
/**
* @throws BadRequestException
*/
public function execute(CreateUserRequest $dto): void
{
if ($dto->email === null) {