Skip to content

Commit e45ba45

Browse files
chostenondrejmirtes
authored andcommitted
Various fixes to the return signature of IntlDateFormatter methods
1 parent 4537ef1 commit e45ba45

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

resources/functionMap.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@
15641564
'datefmt_format' => ['string|false', 'fmt'=>'IntlDateFormatter', 'value'=>'DateTime|IntlCalendar|array|int'],
15651565
'datefmt_format_object' => ['string|false', 'object'=>'object', 'format='=>'mixed', 'locale='=>'string'],
15661566
'datefmt_get_calendar' => ['int|false', 'fmt'=>'IntlDateFormatter'],
1567-
'datefmt_get_calendar_object' => ['IntlCalendar|false', 'fmt'=>'IntlDateFormatter'],
1567+
'datefmt_get_calendar_object' => ['IntlCalendar|false|null', 'fmt'=>'IntlDateFormatter'],
15681568
'datefmt_get_datetype' => ['int|false', 'fmt'=>'IntlDateFormatter'],
15691569
'datefmt_get_error_code' => ['int', 'fmt'=>'IntlDateFormatter'],
15701570
'datefmt_get_error_message' => ['string', 'fmt'=>'IntlDateFormatter'],
@@ -1574,10 +1574,10 @@
15741574
'datefmt_get_timezone' => ['IntlTimeZone|false'],
15751575
'datefmt_get_timezone_id' => ['string|false', 'fmt'=>'IntlDateFormatter'],
15761576
'datefmt_is_lenient' => ['bool', 'fmt'=>'IntlDateFormatter'],
1577-
'datefmt_localtime' => ['array|bool|false', 'fmt'=>'IntlDateFormatter', 'text_to_parse='=>'string', '&rw_parse_pos='=>'int'],
1578-
'datefmt_parse' => ['int|false', 'fmt'=>'IntlDateFormatter', 'text_to_parse='=>'string', '&rw_parse_pos='=>'int'],
1577+
'datefmt_localtime' => ['array|false', 'fmt'=>'IntlDateFormatter', 'text_to_parse='=>'string', '&rw_parse_pos='=>'int'],
1578+
'datefmt_parse' => ['int|float|false', 'fmt'=>'IntlDateFormatter', 'text_to_parse='=>'string', '&rw_parse_pos='=>'int'],
15791579
'datefmt_set_calendar' => ['bool', 'fmt'=>'IntlDateFormatter', 'which'=>'int'],
1580-
'datefmt_set_lenient' => ['?bool', 'fmt'=>'IntlDateFormatter', 'lenient'=>'bool'],
1580+
'datefmt_set_lenient' => ['void', 'fmt'=>'IntlDateFormatter', 'lenient'=>'bool'],
15811581
'datefmt_set_pattern' => ['bool', 'fmt'=>'IntlDateFormatter', 'pattern'=>'string'],
15821582
'datefmt_set_timezone' => ['bool', 'zone'=>'mixed'],
15831583
'datefmt_set_timezone_id' => ['bool', 'fmt'=>'IntlDateFormatter', 'zone'=>'string'],
@@ -5519,22 +5519,22 @@
55195519
'IntlDateFormatter::__construct' => ['void', 'locale'=>'?string', 'datetype'=>'?int', 'timetype'=>'?int', 'timezone='=>'null|string|IntlTimeZone|DateTimeZone', 'calendar='=>'null|int|IntlCalendar', 'pattern='=>'string'],
55205520
'IntlDateFormatter::create' => ['IntlDateFormatter|null', 'locale'=>'?string', 'datetype'=>'?int', 'timetype'=>'?int', 'timezone='=>'null|string|IntlTimeZone|DateTimeZone', 'calendar='=>'int|IntlCalendar', 'pattern='=>'string'],
55215521
'IntlDateFormatter::format' => ['string|false', 'args'=>''],
5522-
'IntlDateFormatter::formatObject' => ['string', 'object'=>'object', 'format='=>'mixed', 'locale='=>'string'],
5523-
'IntlDateFormatter::getCalendar' => ['int'],
5524-
'IntlDateFormatter::getCalendarObject' => ['IntlCalendar'],
5525-
'IntlDateFormatter::getDateType' => ['int'],
5522+
'IntlDateFormatter::formatObject' => ['string|false', 'object'=>'object', 'format='=>'mixed', 'locale='=>'string'],
5523+
'IntlDateFormatter::getCalendar' => ['int|false'],
5524+
'IntlDateFormatter::getCalendarObject' => ['IntlCalendar|false|null'],
5525+
'IntlDateFormatter::getDateType' => ['int|false'],
55265526
'IntlDateFormatter::getErrorCode' => ['int'],
55275527
'IntlDateFormatter::getErrorMessage' => ['string'],
5528-
'IntlDateFormatter::getLocale' => ['string'],
5529-
'IntlDateFormatter::getPattern' => ['string'],
5530-
'IntlDateFormatter::getTimeType' => ['int'],
5531-
'IntlDateFormatter::getTimeZone' => ['IntlTimeZone'],
5532-
'IntlDateFormatter::getTimeZoneId' => ['string'],
5528+
'IntlDateFormatter::getLocale' => ['string|false'],
5529+
'IntlDateFormatter::getPattern' => ['string|false'],
5530+
'IntlDateFormatter::getTimeType' => ['int|false'],
5531+
'IntlDateFormatter::getTimeZone' => ['IntlTimeZone|false'],
5532+
'IntlDateFormatter::getTimeZoneId' => ['string|false'],
55335533
'IntlDateFormatter::isLenient' => ['bool'],
5534-
'IntlDateFormatter::localtime' => ['array', 'text_to_parse'=>'string', '&w_parse_pos='=>'int'],
5535-
'IntlDateFormatter::parse' => ['int|false', 'text_to_parse'=>'string', '&w_parse_pos='=>'int'],
5534+
'IntlDateFormatter::localtime' => ['array|false', 'text_to_parse'=>'string', '&w_parse_pos='=>'int'],
5535+
'IntlDateFormatter::parse' => ['int|float|false', 'text_to_parse'=>'string', '&w_parse_pos='=>'int'],
55365536
'IntlDateFormatter::setCalendar' => ['bool', 'calendar'=>''],
5537-
'IntlDateFormatter::setLenient' => ['bool', 'lenient'=>'bool'],
5537+
'IntlDateFormatter::setLenient' => ['void', 'lenient'=>'bool'],
55385538
'IntlDateFormatter::setPattern' => ['bool', 'pattern'=>'string'],
55395539
'IntlDateFormatter::setTimeZone' => ['bool', 'timezone'=>''],
55405540
'IntlDateFormatter::setTimeZoneId' => ['bool', 'zone'=>'string', 'fmt='=>'IntlDateFormatter'],

0 commit comments

Comments
 (0)