1--TEST--
2Closures in default argument
3--FILE--
4<?php
5
6function test(
7 Closure $name = static function () {
8 echo "default", PHP_EOL;
9 },
10) {
11 $name();
12}
13
14test();
15test(function () {
16 echo "explicit", PHP_EOL;
17});
18
19?>
20--EXPECT--
21default
22explicit
23