Skip to content

Commit 35e5824

Browse files
Fix tests on PHP 8.1
1 parent 92e120c commit 35e5824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/DateFormatter/Verification/IntlDateFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function getDateFormatter($locale, $datetype, $timetype, $timezone = n
7373
{
7474
IntlTestHelper::requireFullIntl($this, '55.1');
7575

76-
if (!$formatter = new \IntlDateFormatter($locale, $datetype, $timetype, $timezone, $calendar, $pattern)) {
76+
if (!$formatter = new \IntlDateFormatter($locale, $datetype ?? IntlDateFormatter::FULL, $timetype ?? IntlDateFormatter::FULL, $timezone, $calendar, $pattern)) {
7777
throw new \InvalidArgumentException(intl_get_error_message());
7878
}
7979

0 commit comments

Comments
 (0)