Skip to content

Commit 8533867

Browse files
authored
Don't rewrite response in context when validate the rules failed. (#6169)
1 parent 7fbb937 commit 8533867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request/FormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getScene(): ?string
6565
*/
6666
public function response(): ResponseInterface
6767
{
68-
return ResponseContext::get()->setStatus(422);
68+
return ResponseContext::get()->withStatus(422);
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)