diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-16 21:19:36 +0200 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-16 21:19:36 +0200 |
| commit | c76910cd967f498065f50f17dcaad941792e8430 (patch) | |
| tree | adc49e15035601cf65dc2211f43cb4094eead12d /ext/intl/php_intl.stub.php | |
| parent | 0286decdb4acdfedd6365ed46f06e43cfdbf3673 (diff) | |
| download | php-git-c76910cd967f498065f50f17dcaad941792e8430.tar.gz | |
Display types in stubs more uniformly
In preparation for generating method signatures for the manual.
This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.
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 f2a1af1c2e..67bd27be92 100644 --- a/ext/intl/php_intl.stub.php +++ b/ext/intl/php_intl.stub.php @@ -5,7 +5,7 @@ /* calendar */ /** @param IntlTimeZone|DateTimeZone|string|null $timeZone */ -function intlcal_create_instance($timeZone = null, ?string $locale = null): IntlCalendar|null {} +function intlcal_create_instance($timeZone = null, ?string $locale = null): ?IntlCalendar {} function intlcal_get_keyword_values_for_locale(string $key, string $locale, bool $commonlyUsed): IntlIterator|false {} |
