minor #35877 [Validator][ConstraintValidator] Update wrong PRETTY_DATE doc (fancyweb)
This PR was merged into the 3.4 branch.
Discussion
----------
[Validator][ConstraintValidator] Update wrong PRETTY_DATE doc
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
That is really minor but the current doc is not up to date with the real behavior.
Commits
-------
491fc5c24d
[Validator][ConstraintValidator] Update wrong PRETTY_DATE doc
This commit is contained in:
commit
dd8f580eda
@ -21,8 +21,8 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
abstract class ConstraintValidator implements ConstraintValidatorInterface
|
||||
{
|
||||
/**
|
||||
* Whether to format {@link \DateTime} objects as RFC-3339 dates
|
||||
* ("Y-m-d H:i:s").
|
||||
* Whether to format {@link \DateTime} objects, either with the {@link \IntlDateFormatter}
|
||||
* (if it is available) or as RFC-3339 dates ("Y-m-d H:i:s").
|
||||
*/
|
||||
const PRETTY_DATE = 1;
|
||||
|
||||
@ -69,7 +69,8 @@ abstract class ConstraintValidator implements ConstraintValidatorInterface
|
||||
* in double quotes ("). Objects, arrays and resources are formatted as
|
||||
* "object", "array" and "resource". If the $format bitmask contains
|
||||
* the PRETTY_DATE bit, then {@link \DateTime} objects will be formatted
|
||||
* as RFC-3339 dates ("Y-m-d H:i:s").
|
||||
* with the {@link \IntlDateFormatter}. If it is not available, they will be
|
||||
* formatted as RFC-3339 dates ("Y-m-d H:i:s").
|
||||
*
|
||||
* Be careful when passing message parameters to a constraint violation
|
||||
* that (may) contain objects, arrays or resources. These parameters
|
||||
|
Reference in New Issue
Block a user