php-src/Zend/tests/ns_073.phpt
2018-10-14 19:45:12 +02:00

20 lines
230 B
PHP

--TEST--
Testing type-hinted lambda parameter inside namespace
--FILE--
<?php
namespace foo;
$x = function (\stdclass $x = NULL) {
var_dump($x);
};
$x(NULL);
$x(new \stdclass);
?>
--EXPECTF--
NULL
object(stdClass)#%d (0) {
}