xref: /PHP-8.2/Zend/tests/ns_070.phpt (revision f8d79582)
1--TEST--
2Testing parameter type-hinted with default value inside namespace
3--FILE--
4<?php
5
6namespace foo;
7
8class bar {
9    public function __construct(\stdclass $x = NULL) {
10        var_dump($x);
11    }
12}
13
14new bar(new \stdclass);
15new bar(null);
16
17?>
18--EXPECTF--
19object(stdClass)#%d (0) {
20}
21NULL
22