Skip to content

Commit 472778c

Browse files
committed
change natsort return type for ci
1 parent c3e42a1 commit 472778c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ function ksort(array &$stack, int $sort_flags = PHP_SORT_REGULAR): bool {}
6767
/** @param array|Countable $array */
6868
function count($array, int $mode = COUNT_NORAML): int {}
6969

70-
function natsort(array &$stack): void {}
70+
function natsort(array &$stack): bool {}
7171

72-
function natcasesort(array &$stack): void {}
72+
function natcasesort(array &$stack): bool {}
7373

7474
function asort(array &$stack, int $sort_flags = PHP_SORT_REGULAR): bool {}
7575

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_count, 0, 1, IS_LONG, 0)
8282
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
8383
ZEND_END_ARG_INFO()
8484

85-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_natsort, 0, 1, IS_VOID, 0)
85+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_natsort, 0, 1, _IS_BOOL, 0)
8686
ZEND_ARG_TYPE_INFO(1, stack, IS_ARRAY, 0)
8787
ZEND_END_ARG_INFO()
8888

0 commit comments

Comments
 (0)