Skip to content

Commit c3e42a1

Browse files
author
Liu Shangji
committed
fix count return type
1 parent 8a59b39 commit c3e42a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function krsort(array &$stack, int $sort_flags = PHP_SORT_REGULAR): bool {}
6565
function ksort(array &$stack, int $sort_flags = PHP_SORT_REGULAR): bool {}
6666

6767
/** @param array|Countable $array */
68-
function count($array, int $mode = COUNT_NORAML): bool {}
68+
function count($array, int $mode = COUNT_NORAML): int {}
6969

7070
function natsort(array &$stack): void {}
7171

ext/standard/basic_functions_arginfo.h

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

7878
#define arginfo_ksort arginfo_krsort
7979

80-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_count, 0, 1, _IS_BOOL, 0)
80+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_count, 0, 1, IS_LONG, 0)
8181
ZEND_ARG_INFO(0, array)
8282
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
8383
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)