File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ protected function formatTypeOf($value)
69
69
* This method returns the equivalent PHP tokens for most scalar types
70
70
* (i.e. "false" for false, "1" for 1 etc.). Strings are always wrapped
71
71
* in double quotes ("). Objects, arrays and resources are formatted as
72
- * "object", "array" and "resource". If the parameter $prettyDateTime
73
- * is set to true, {@link \DateTime} objects will be formatted as
74
- * RFC-3339 dates ("Y-m-d H:i:s").
72
+ * "object", "array" and "resource". If the $format bitmask contains
73
+ * the PRETTY_DATE bit, then {@link \DateTime} objects will be formatted
74
+ * as RFC-3339 dates ("Y-m-d H:i:s").
75
75
*
76
76
* Be careful when passing message parameters to a constraint violation
77
77
* that (may) contain objects, arrays or resources. These parameters
@@ -99,7 +99,7 @@ protected function formatValue($value, $format = 0)
99
99
}
100
100
101
101
if (is_object ($ value )) {
102
- if ($ format & self ::OBJECT_TO_STRING && method_exists ($ value , '__toString ' )) {
102
+ if (( $ format & self ::OBJECT_TO_STRING ) && method_exists ($ value , '__toString ' )) {
103
103
return $ value ->__toString ();
104
104
}
105
105
You can’t perform that action at this time.
0 commit comments