summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_073.phpt
blob: 8f083195d5efb68e1d25cf13786299dea05ef62c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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) {
}