Open Furgas opened 4 years ago
Code:
function foo(int ...$a) { return $a; } $ints = [1,2]; foo(...$ints);
Result: Compile Error: Cannot use positional argument after argument unpacking
Compile Error: Cannot use positional argument after argument unpacking
Generated code causing the error:
return foo(\PHPSandbox\wrapByRef(...$ints, \PHPSandbox\PHPSandbox::getSandbox('__PHPSandbox_ff7c8ab064063e1d4d509dfbadda498e')));
Code:
Result:
Compile Error: Cannot use positional argument after argument unpacking
Generated code causing the error: