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

Commit e8f9c6b

Browse files
committed
chore: some EachValue documentation fixes
1 parent 3641d1b commit e8f9c6b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/03x-rules-eachvalue.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ type: `string` default: `At "{{ key }}": {{ message }}`
3434
Message that will be shown if at least one input value element is invalid according to the given `validator`.
3535

3636
```php
37-
Validator::all(Validator::notBlank())->assert(['red', 'green', ''], 'Test');
37+
Validator::eachValue(Validator::notBlank())->assert(['red', 'green', ''], 'Test');
3838
// Throws: At key "2": The "Test" value should not be blank, "" given.
3939
```
4040

4141
The following parameters are available:
4242

43-
| Parameter | Description |
44-
|-----------------|-----------------------------------------------|
45-
| `{{ value }}` | The current invalid value |
46-
| `{{ name }}` | Name of the invalid value |
47-
| `{{ key }}` | The array key of the invalid array element |
48-
| `{{ message }}` | The rule message of the invalid array element |
43+
| Parameter | Description |
44+
|-----------------|--------------------------------------------------|
45+
| `{{ value }}` | The current invalid value |
46+
| `{{ name }}` | Name of the invalid value |
47+
| `{{ key }}` | The key of the invalid iterable element |
48+
| `{{ message }}` | The rule message of the invalid iterable element |

0 commit comments

Comments
 (0)