From 4903f7c5fde11a115f659ec54a1d0ede6fd7232c Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 17 Jul 2020 12:40:05 +0200 Subject: Fix IntlGregorianCalendar constructor signature Give these conversative UNKNOWN defaults and no types, as the overload is something of a mess. --- ext/intl/php_intl.stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/intl/php_intl.stub.php') diff --git a/ext/intl/php_intl.stub.php b/ext/intl/php_intl.stub.php index 337a79c71a..9708f6d359 100644 --- a/ext/intl/php_intl.stub.php +++ b/ext/intl/php_intl.stub.php @@ -99,7 +99,7 @@ function intlcal_get_error_code(IntlCalendar $calendar): int|false {} function intlcal_get_error_message(IntlCalendar $calendar): string|false {} /** @param IntlTimeZone|DateTimeZone|string|null $timeZone */ -function intlgregcal_create_instance($timeZone = null, ?string $locale = null): ?IntlGregorianCalendar {} +function intlgregcal_create_instance($timeZoneOrYear = UNKNOWN, $localeOrMonth = UNKNOWN, $dayOfMonth = UNKNOWN, $hour = UNKNOWN, $minute = UNKNOWN, $second = UNKNOWN): ?IntlGregorianCalendar {} function intlgregcal_set_gregorian_change(IntlGregorianCalendar $calendar, float $change): bool {} -- cgit v1.2.1