Skip to content

Commit 144da07

Browse files
author
Liu Shangji
committed
fix void return type
1 parent 4986fd1 commit 144da07

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
@@ -66,9 +66,9 @@ function ksort(array &$stack, int $sort_flags = PHP_SORT_REGULAR): bool {}
6666

6767
function count(mixed $array, int $mode = COUNT_NORAML): bool {}
6868

69-
function natsort(array &$stack){}
69+
function natsort(array &$stack): void {}
7070

71-
function natcasesort(array &$stack){}
71+
function natcasesort(array &$stack): void {}
7272

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

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_BOOL, 0)
8282
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
8383
ZEND_END_ARG_INFO()
8484

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

0 commit comments

Comments
 (0)