summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-14 17:36:20 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-01 16:35:56 +0200
commitf7fbc6333ff9a91ffb2f636790657c927b4e3c55 (patch)
tree0c3ca3db071c9c0052fd43c633279fd0cd9d9127 /ext/intl/php_intl.stub.php
parent1c56b40a5ce45f598d718cf34e8a265d44f1d9d4 (diff)
downloadphp-git-f7fbc6333ff9a91ffb2f636790657c927b4e3c55.tar.gz
Add more precise type info for stubs
Closes GH-6005
Diffstat (limited to 'ext/intl/php_intl.stub.php')
-rw-r--r--ext/intl/php_intl.stub.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/intl/php_intl.stub.php b/ext/intl/php_intl.stub.php
index 8cb198e7d6..bf5e631ba4 100644
--- a/ext/intl/php_intl.stub.php
+++ b/ext/intl/php_intl.stub.php
@@ -89,8 +89,7 @@ function intlcal_set_repeated_wall_time_option(IntlCalendar $calendar, int $wall
function intlcal_set_skipped_wall_time_option(IntlCalendar $calendar, int $wallTimeOption): bool {}
-/** @param DateTime|string $dateTime */
-function intlcal_from_date_time($dateTime, ?string $locale = null): ?IntlCalendar {}
+function intlcal_from_date_time(DateTime|string $dateTime, ?string $locale = null): ?IntlCalendar {}
function intlcal_to_date_time(IntlCalendar $calendar): DateTime|false {}
@@ -188,7 +187,7 @@ function datefmt_set_lenient(IntlDateFormatter $df, bool $lenient): void {}
function datefmt_is_lenient(IntlDateFormatter $df): bool {}
-/** @param mixed $value */
+/** @param object|array|string|int|float $value */
function datefmt_format(IntlDateFormatter $df, $value): string|false {}
/**
@@ -227,7 +226,7 @@ function numfmt_parse_currency(NumberFormatter $fmt, string $value, &$currency,
/** @param int|float $value */
function numfmt_set_attribute(NumberFormatter $fmt, int $attr, $value): bool {}
-function numfmt_get_attribute(NumberFormatter $fmt, int $attr): int|double|false {}
+function numfmt_get_attribute(NumberFormatter $fmt, int $attr): int|float|false {}
function numfmt_set_text_attribute(NumberFormatter $fmt, int $attr, string $value): bool {}
@@ -372,7 +371,7 @@ function intltz_count_equivalent_ids(string $zoneId): int|false {}
function intltz_create_default(): IntlTimeZone {}
/**
- * @param IntlTimeZone|string|int|double|null $countryOrRawOffset
+ * @param IntlTimeZone|string|int|float|null $countryOrRawOffset
* @return IntlIterator|false
*/
function intltz_create_enumeration($countryOrRawOffset = null) {}
@@ -436,8 +435,7 @@ function transliterator_list_ids(): array|false {}
function transliterator_create_inverse(Transliterator $orig_trans): ?Transliterator {}
-/** @param Transliterator|string $transliterator */
-function transliterator_transliterate($transliterator, string $subject, int $start = 0, int $end = -1): string|false {}
+function transliterator_transliterate(Transliterator|string $transliterator, string $subject, int $start = 0, int $end = -1): string|false {}
function transliterator_get_error_code(Transliterator $trans): int|false {}