summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-09-16 21:19:36 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-16 21:19:36 +0200
commitc76910cd967f498065f50f17dcaad941792e8430 (patch)
treeadc49e15035601cf65dc2211f43cb4094eead12d /ext/intl/php_intl.stub.php
parent0286decdb4acdfedd6365ed46f06e43cfdbf3673 (diff)
downloadphp-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.php2
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 {}