xref: /PHP-5.3/Zend/tests/ns_073.phpt (revision 1b4134c0)
1--TEST--
2Testing type-hinted lambda parameter inside namespace
3--FILE--
4<?php
5
6namespace foo;
7
8$x = function (\stdclass $x = NULL) {
9	var_dump($x);
10};
11
12$x(NULL);
13$x(new \stdclass);
14
15?>
16--EXPECTF--
17NULL
18object(stdClass)#%d (0) {
19}
20