Skip to content

Commit a74f7bd

Browse files
authored
Update README.md
1 parent 5312016 commit a74f7bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $validation = new ValidationResult();
2929

3030
// Validate username
3131
if (empty($data['username'])) {
32-
$validation->addError('email', 'Input required');
32+
$validation->addError('username', 'Input required');
3333
}
3434

3535
// Validate password
@@ -40,7 +40,7 @@ if (empty($data['password'])) {
4040
// Check validation result
4141
if ($validation->isFailed()) {
4242
// Global error message
43-
$validation->setMessage('Please check you input');
43+
$validation->setMessage('Please check your input');
4444

4545
// Trigger error response (see validation middleware)
4646
throw new ValidationException($validation);

0 commit comments

Comments
 (0)