blob: 7bf6e5ce886f02657725744644e39a55a98a09f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
Closure use list can have trailing commas
--FILE--
<?php
$b = 'test';
$fn = function () use (
$b,
&$a,
) {
$a = $b;
};
$fn();
echo "$a\n";
?>
--EXPECT--
test
|