]> granicus.if.org Git - php/commitdiff
Fix enchant stub
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 6 May 2020 11:16:50 +0000 (13:16 +0200)
committerRemi Collet <remi@php.net>
Wed, 6 May 2020 11:16:50 +0000 (13:16 +0200)
ext/enchant/enchant.stub.php
ext/enchant/enchant_arginfo.h

index f235ff59ba9f4fa13ad43e68784103954d87c70f..f4bed54dc1bd8d124cadfff74715c81641372d28 100644 (file)
@@ -27,7 +27,7 @@ function enchant_broker_set_dict_path($broker, int $name, string $value): bool {
 function enchant_broker_get_dict_path($broker, int $name): string|false {}
 
 /** @param resource $broker */
-function enchant_broker_list_dicts($broker): array {}
+function enchant_broker_list_dicts($broker): ?array {}
 
 /**
  * @param resource $broker
@@ -51,7 +51,7 @@ function enchant_broker_dict_exists($broker, string $tag): bool {}
 function enchant_broker_set_ordering($broker, string $tag, string $ordering): bool {}
 
 /** @param resource $broker */
-function enchant_broker_describe($broker): array {}
+function enchant_broker_describe($broker): ?array {}
 
 /** @param resource $dict */
 function enchant_dict_quick_check($dict, string $word, &$suggestions = null): bool {}
index b0906d9a3dfdc771799762b453f45adab271e575..07492a1cae8b3237fae2ab42361dac0f89a58487 100644 (file)
@@ -22,7 +22,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_broker_get_dict_path, 0,
        ZEND_ARG_TYPE_INFO(0, name, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_list_dicts, 0, 1, IS_ARRAY, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_list_dicts, 0, 1, IS_ARRAY, 1)
        ZEND_ARG_INFO(0, broker)
 ZEND_END_ARG_INFO()