Skip to content

Commit c1ad916

Browse files
cmb69remicollet
authored andcommitted
Fix enchant stub
1 parent 5f5dd99 commit c1ad916

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/enchant/enchant.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function enchant_broker_set_dict_path($broker, int $name, string $value): bool {
2727
function enchant_broker_get_dict_path($broker, int $name): string|false {}
2828

2929
/** @param resource $broker */
30-
function enchant_broker_list_dicts($broker): array {}
30+
function enchant_broker_list_dicts($broker): ?array {}
3131

3232
/**
3333
* @param resource $broker
@@ -51,7 +51,7 @@ function enchant_broker_dict_exists($broker, string $tag): bool {}
5151
function enchant_broker_set_ordering($broker, string $tag, string $ordering): bool {}
5252

5353
/** @param resource $broker */
54-
function enchant_broker_describe($broker): array {}
54+
function enchant_broker_describe($broker): ?array {}
5555

5656
/** @param resource $dict */
5757
function enchant_dict_quick_check($dict, string $word, &$suggestions = null): bool {}

ext/enchant/enchant_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_broker_get_dict_path, 0,
2222
ZEND_ARG_TYPE_INFO(0, name, IS_LONG, 0)
2323
ZEND_END_ARG_INFO()
2424

25-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_list_dicts, 0, 1, IS_ARRAY, 0)
25+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_list_dicts, 0, 1, IS_ARRAY, 1)
2626
ZEND_ARG_INFO(0, broker)
2727
ZEND_END_ARG_INFO()
2828

0 commit comments

Comments
 (0)