From c1ad9163b8d9f112f5ac06d16d0919fdae8be32b Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 6 May 2020 13:16:50 +0200 Subject: [PATCH] Fix enchant stub --- ext/enchant/enchant.stub.php | 4 ++-- ext/enchant/enchant_arginfo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/enchant/enchant.stub.php b/ext/enchant/enchant.stub.php index f235ff59ba..f4bed54dc1 100644 --- a/ext/enchant/enchant.stub.php +++ b/ext/enchant/enchant.stub.php @@ -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 {} diff --git a/ext/enchant/enchant_arginfo.h b/ext/enchant/enchant_arginfo.h index b0906d9a3d..07492a1cae 100644 --- a/ext/enchant/enchant_arginfo.h +++ b/ext/enchant/enchant_arginfo.h @@ -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() -- 2.50.1