php-src/Zend/tests/ns_070.phpt
2020-02-03 22:52:20 +01:00

22 lines
293 B
PHP

--TEST--
Testing parameter type-hinted with default value inside namespace
--FILE--
<?php
namespace foo;
class bar {
public function __construct(\stdclass $x = NULL) {
var_dump($x);
}
}
new bar(new \stdclass);
new bar(null);
?>
--EXPECTF--
object(stdClass)#%d (0) {
}
NULL