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

Commit 205d5c0

Browse files
committed
chore: improved All rule message option example
1 parent ce94e3c commit 205d5c0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/03-rules-all.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ 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([1, 2, ''], 'Test');
49-
// Throws: At "2": The "Test" value should not be blank, "" given.
48+
Validator::all([Validator::notBlank()])->assert(['red', 'green', ''], 'Test'); // At "2": The "Test" value should not be blank, "" given.
5049
```
5150

5251
The following parameters are available:

0 commit comments

Comments
 (0)