mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -299,7 +299,10 @@ function setup() : void
|
|||||||
if (strpos($step[0], '::'))
|
if (strpos($step[0], '::'))
|
||||||
$res = call_user_func($step[0], $step[1]);
|
$res = call_user_func($step[0], $step[1]);
|
||||||
else
|
else
|
||||||
$res = $step[0](...$step[1]);
|
{
|
||||||
|
$args = &$step[1];
|
||||||
|
$res = $step[0]($args);
|
||||||
|
}
|
||||||
|
|
||||||
// check script result
|
// check script result
|
||||||
if ($step[2])
|
if ($step[2])
|
||||||
|
|||||||
Reference in New Issue
Block a user