mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/standard: Change return value of array_multisort() to true (#16520)
It stopped being able to return false since PHP 8.0 when all warnings and false returns were converted to ValueErrors and TypeErrors
This commit is contained in:
committed by
GitHub
parent
935fef29bd
commit
8143eca499
@@ -1858,7 +1858,7 @@ function array_udiff_uassoc(array $array, ...$rest): array {}
|
||||
* @prefer-ref $array
|
||||
* @prefer-ref $rest
|
||||
*/
|
||||
function array_multisort(&$array, &...$rest): bool {}
|
||||
function array_multisort(&$array, &...$rest): true {}
|
||||
|
||||
/** @return int|string|array<int, int|string> */
|
||||
function array_rand(array $array, int $num = 1): int|string|array {}
|
||||
|
||||
4
ext/standard/basic_functions_arginfo.h
generated
4
ext/standard/basic_functions_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 504f4172ac1d64535719234888400063eb37361b */
|
||||
* Stub hash: 583e2f348efe048b71eb313ca2a4b8bbb8fc7a9a */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
|
||||
@@ -308,7 +308,7 @@ ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_array_udiff_uassoc arginfo_array_intersect_ukey
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_multisort, 0, 1, _IS_BOOL, 0)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_multisort, 0, 1, IS_TRUE, 0)
|
||||
ZEND_ARG_INFO(ZEND_SEND_PREFER_REF, array)
|
||||
ZEND_ARG_VARIADIC_INFO(ZEND_SEND_PREFER_REF, rest)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
Reference in New Issue
Block a user