Skip to content
This repository was archived by the owner on Jun 19, 2022. It is now read-only.

Commit 3b0a666

Browse files
author
fd6130
committed
BC promise before remove
1 parent c149057 commit 3b0a666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DtoRequestResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function resolve(Request $request, ArgumentMetadata $argument)
6363
{
6464
$errorMessages [] = $error->getPropertyPath() . ' => ' . $error->getMessage();
6565
}
66-
throw new DtoValidationException(['messages' => $errorMessages]);
66+
throw new JsonResponseException('Bad Request', $errorMessages);
6767
}
6868

6969
yield $dto;

0 commit comments

Comments
 (0)