Skip to content

Commit 029964a

Browse files
committed
also fix def value for object
1 parent e4b7387 commit 029964a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/enchant/enchant.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class EnchantDict
3434
public function __construct(EnchantBroker $broker, string $tag) {}
3535

3636
/** @alias enchant_dict_quick_check */
37-
public function checkAndSuggest(string $word, &$suggestions = UNKNOWN): bool {}
37+
public function checkAndSuggest(string $word, &$suggestions = null): bool {}
3838

3939
/** @alias enchant_dict_check */
4040
public function check(string $word): bool {}

ext/enchant/enchant_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ ZEND_END_ARG_INFO()
131131

132132
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_EnchantDict_checkAndSuggest, 0, 1, _IS_BOOL, 0)
133133
ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
134-
ZEND_ARG_INFO(1, suggestions)
134+
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, suggestions, "null")
135135
ZEND_END_ARG_INFO()
136136

137137
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_EnchantDict_check, 0, 1, _IS_BOOL, 0)

0 commit comments

Comments
 (0)