8000 Adds CHANGELOG entry for #170 · zendframework/zend-inputfilter@9fd3546 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 9fd3546

Browse files
committed
Adds CHANGELOG entry for #170
1 parent 730994a commit 9fd3546

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9-
- Nothing.
9+
- [#170](https://github.com/zendframework/zend-inputfilter/pull/170) adds the ability to set a "required" message on a `CollectionInputFilter`.
10+
By default, such instances will lazy-load a `NotEmpty` validator, and use its
11+
messages to report that the collection was empty if it is marked as required.
12+
If you wish to set a different message, you have two options:
13+
14+
- provide a custom `NotEmpty` validator via the new method
15+
`setNotEmptyValidator()`.
16+
17+
- if using a factory, provide the key `required_message` as a sibling to
18+
`required`, containing the custom message. This will replace the typical
19+
`IS_EMPTY` message.
1020

1121
### Changed
1222

0 commit comments

Comments
 (0)
0