Skip to content

Commit 9787e64

Browse files
committed
minor #8414 Update missingFieldsMessage default value (ipatiev)
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #8414). Discussion ---------- Update missingFieldsMessage default value In Symfony 2.1.0 changed default value for extraFieldsMessage and missingFieldsMessage in Collection constraint Change log: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/CHANGELOG.md#210 Current code: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Constraints/Collection.php#L36 so this is a pull request to update the doc. Commits ------- bb2e91b Update missingFieldsMessage default value
2 parents cf057c6 + bb2e91b commit 9787e64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Collection.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ error will be returned. If set to ``true``, extra fields are ok.
314314
extraFieldsMessage
315315
~~~~~~~~~~~~~~~~~~
316316

317-
**type**: ``boolean`` **default**: ``The fields {{ fields }} were not expected.``
317+
**type**: ``boolean`` **default**: ``This field was not expected.``
318318

319319
The message shown if `allowExtraFields`_ is false and an extra field is
320320
detected.
@@ -332,7 +332,7 @@ option are not present in the underlying collection.
332332
missingFieldsMessage
333333
~~~~~~~~~~~~~~~~~~~~
334334

335-
**type**: ``boolean`` **default**: ``The fields {{ fields }} are missing.``
335+
**type**: ``boolean`` **default**: ``This field is missing.``
336336

337337
The message shown if `allowMissingFields`_ is false and one or more fields
338338
are missing from the underlying collection.

0 commit comments

Comments
 (0)