mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix IntlGregorianCalendar constructor signature
Give these conversative UNKNOWN defaults and no types, as the overload is something of a mess.
This commit is contained in:
parent
83478d4fe0
commit
4903f7c5fd
5 changed files with 19 additions and 8 deletions
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue