summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/closure_with_variadic.phpt
blob: acbf57fa5582fb9fb1293e5f501d8fb312e56e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Closure with variadic type declaration
--FILE--
<?php
$f = function (stdClass ...$a) {
    var_dump($a);
};
$f(new stdClass);
?>
--EXPECT--
array(1) {
  [0]=>
  object(stdClass)#2 (0) {
  }
}