Closed
Description
This issue is related to #33 #39, but it's still reproducible on built-in functions. If we add the following test, it will be failed.
public function testReimplementFuncWithPassedByReference()
{
$array = [3, 6, 4, 8, 1, 0];
test::func('demo', 'sort', function (array &$array) {
usort($array, function ($x) { return $x - $y; });
});
sort($array);
verify($array)->equals([0, 1, 3, 4, 6, 8]);
}
Metadata
Metadata
Assignees
Labels
No labels