]> granicus.if.org Git - php/commitdiff
Sync intlcal_create_instance() and IntlCalendar::createInstance()
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Jan 2021 13:35:44 +0000 (14:35 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Jan 2021 13:39:32 +0000 (14:39 +0100)
Remove the explicit mention of IntlGregorianCalendar in the latter.
It is a subclass of IntlCalendar, and as such covered if only
IntlCalendar is used as the return type.

ext/intl/calendar/calendar.stub.php
ext/intl/calendar/calendar_arginfo.h

index ded7dfe45d44ea513911434ed09523120ae88c63..3da6ebb1d00e4c35671790c3de4dff8c5d2ef22a 100644 (file)
@@ -8,7 +8,7 @@ class IntlCalendar
 
     /**
      * @param IntlTimeZone|DateTimeZone|string|null $timezone
-     * @return IntlCalendar|IntlGregorianCalendar|null
+     * @return IntlCalendar|null
      * @alias intlcal_create_instance
      */
     public static function createInstance($timezone = null, ?string $locale = null) {}
index 29e0d4f9088e4942a988da3a2bc680caa85d82bb..8537836d5bd037fdcd750ce7ca9ef88fda9c846b 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: ee755d4a500e2d1ba4d589c233b7d09a06b5cce8 */
+ * Stub hash: 18a92d3af801f11e5c3b90e5d272fd98b3515c40 */
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar___construct, 0, 0, 0)
 ZEND_END_ARG_INFO()