You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!\in_array($dateFormat, self::$acceptedFormats, true)) {
74
+
if (!\in_array($dateFormat, self::ACCEPTED_FORMATS, true)) {
75
75
thrownewInvalidOptionsException('The "date_format" option must be one of the IntlDateFormatter constants (FULL, LONG, MEDIUM, SHORT) or a string representing a custom format.');
if (!\in_array($dateFormat, self::$acceptedFormats, true)) {
56
+
if (!\in_array($dateFormat, self::ACCEPTED_FORMATS, true)) {
57
57
thrownewInvalidOptionsException('The "format" option must be one of the IntlDateFormatter constants (FULL, LONG, MEDIUM, SHORT) or a string representing a custom format.');
0 commit comments