We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e120c commit 35e5824Copy full SHA for 35e5824
Tests/DateFormatter/Verification/IntlDateFormatterTest.php
@@ -73,7 +73,7 @@ protected function getDateFormatter($locale, $datetype, $timetype, $timezone = n
73
{
74
IntlTestHelper::requireFullIntl($this, '55.1');
75
76
- if (!$formatter = new \IntlDateFormatter($locale, $datetype, $timetype, $timezone, $calendar, $pattern)) {
+ if (!$formatter = new \IntlDateFormatter($locale, $datetype ?? IntlDateFormatter::FULL, $timetype ?? IntlDateFormatter::FULL, $timezone, $calendar, $pattern)) {
77
throw new \InvalidArgumentException(intl_get_error_message());
78
}
79
0 commit comments