PHP/Compat

* spreading a nested array prevents it from being passed as reference
 * this worked previously under php v7.2
This commit is contained in:
Sarjuuk
2024-05-11 00:12:55 +02:00
parent b5829cc954
commit c87178c791

View File

@@ -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])