Lines Matching refs:closure
10 $closure = function($var) use($data1) {};
11 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
13 $closure = function($var, ...$variadic) {};
14 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
16 $closure = function($var, ...$variadic) use($data1) {};
17 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
19 $closure = function($var, ...$variadic) use($data1, $data2, $data3) {};
20 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
22 $closure = function(...$variadic) use($data1) {};
23 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
25 $closure = function($var, $var2, ...$variadic) {};
26 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
28 $closure = function($var, $var2, $var3, ...$variadic) use($data1, $data2, $data3) {};
29 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());