1--TEST--
2Dumping of uninitialized typed properties (including private ones)
3--FILE--
4<?php
5
6class Test {
7    public bool $public;
8    protected float $protected;
9    private string $private;
10
11    public function dump() {
12        var_dump($this);
13        debug_zval_dump($this);
14    }
15}
16
17$test = new Test;
18$test->dump();
19
20?>
21--EXPECTF--
22object(Test)#1 (0) {
23  ["public"]=>
24  uninitialized(bool)
25  ["protected":protected]=>
26  uninitialized(float)
27  ["private":"Test":private]=>
28  uninitialized(string)
29}
30object(Test)#1 (0) refcount(%d){
31  ["public"]=>
32  uninitialized(bool)
33  ["protected":protected]=>
34  uninitialized(float)
35  ["private":"Test":private]=>
36  uninitialized(string)
37}
38