File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 21
21
abstract class ConstraintValidator implements ConstraintValidatorInterface
22
22
{
23
23
/**
24
- * Whether to format {@link \DateTime} objects as RFC-3339 dates
25
- * ("Y-m-d H:i:s").
24
+ * Whether to format {@link \DateTime} objects, either with the {@link \IntlDateFormatter}
25
+ * (if it is available) or as RFC-3339 dates ( "Y-m-d H:i:s").
26
26
*/
27
27
const PRETTY_DATE = 1 ;
28
28
@@ -69,7 +69,8 @@ protected function formatTypeOf($value)
69
69
* in double quotes ("). Objects, arrays and resources are formatted as
70
70
* "object", "array" and "resource". If the $format bitmask contains
71
71
* the PRETTY_DATE bit, then {@link \DateTime} objects will be formatted
72
- * as RFC-3339 dates ("Y-m-d H:i:s").
72
+ * with the {@link \IntlDateFormatter}. If it is not available, they will be
73
+ * formatted as RFC-3339 dates ("Y-m-d H:i:s").
73
74
*
74
75
* Be careful when passing message parameters to a constraint violation
75
76
* that (may) contain objects, arrays or resources. These parameters
You can’t perform that action at this time.
0 commit comments