Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8143eca

Browse files
authored
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
1 parent 935fef2 commit 8143eca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎ext/standard/basic_functions.stub.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ function array_udiff_uassoc(array $array, ...$rest): array {}
18581858
* @prefer-ref $array
18591859
* @prefer-ref $rest
18601860
*/
1861-
function array_multisort(&$array, &...$rest): bool {}
1861+
function array_multisort(&$array, &...$rest): true {}
18621862

18631863
/** @return int|string|array<int, int|string> */
18641864
function array_rand(array $array, int $num = 1): int|string|array {}

‎ext/standard/basic_functions_arginfo.h‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /