1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
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

23 lines
263 B
PHP

--TEST--
Closures in default argument
--FILE--
<?php
function test(
Closure $name = static function () {
echo "default", PHP_EOL;
},
) {
$name();
}
test();
test(function () {
echo "explicit", PHP_EOL;
});
?>
--EXPECT--
default
explicit