From c87178c7919c268f5f26d88f847ec49658024ac3 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 11 May 2024 00:12:55 +0200 Subject: [PATCH] PHP/Compat * spreading a nested array prevents it from being passed as reference * this worked previously under php v7.2 --- setup/tools/clisetup/setup.func.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/tools/clisetup/setup.func.php b/setup/tools/clisetup/setup.func.php index 95c1d8c7..f04bfff6 100644 --- a/setup/tools/clisetup/setup.func.php +++ b/setup/tools/clisetup/setup.func.php @@ -299,7 +299,10 @@ function setup() : void if (strpos($step[0], '::')) $res = call_user_func($step[0], $step[1]); else - $res = $step[0](...$step[1]); + { + $args = &$step[1]; + $res = $step[0]($args); + } // check script result if ($step[2])