php-src/Zend/tests/closures/closure_use_trailing_comma.phpt
DanielEScherzer a50f82bebf
Zend/tests: organize some tests with sub directories (6) (#17807)
Move more tests into existing directories

Work towards GH-15631
2025-02-15 14:55:07 +00:00

17 lines
180 B
PHP

--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