Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit dccdd98

Browse files
committed
chore: improved All rule message option example (again)
1 parent 205d5c0 commit dccdd98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/03-rules-all.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ type: `string` default: `At "{{ key }}": {{ message }}`
4545
Message that will be shown if at least one element of an array is invalid according to the given `constraints`.
4646

4747
```php
48-
Validator::all([Validator::notBlank()])->assert(['red', 'green', ''], 'Test'); // At "2": The "Test" value should not be blank, "" given.
48+
Validator::all([Validator::notBlank()])->assert(['red', 'green', ''], 'Test');
49+
// Throws: At "2": The "Test" value should not be blank, "" given.
4950
```
5051

5152
The following parameters are available:

0 commit comments

Comments
 (0)