diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-17 12:40:05 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-17 12:47:25 +0200 |
commit | 4903f7c5fde11a115f659ec54a1d0ede6fd7232c (patch) | |
tree | 77fe3c1fee00330aaf1636fa8af52ff030f7ad9c /ext/intl/php_intl.stub.php | |
parent | 83478d4fe0e186b4ce2505b44f73a38896dd5d71 (diff) | |
download | php-git-4903f7c5fde11a115f659ec54a1d0ede6fd7232c.tar.gz |
Fix IntlGregorianCalendar constructor signature
Give these conversative UNKNOWN defaults and no types, as the
overload is something of a mess.
Diffstat (limited to 'ext/intl/php_intl.stub.php')
-rw-r--r-- | ext/intl/php_intl.stub.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 {} |