File size: 306 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Asymmetric visibility nested write
--FILE--
<?php

class Foo {
    public private(set) Bar $bar;

    public function __construct() {
        $this->bar = new Bar;
    }
}

class Bar {
    public int $baz;
}

$foo = new Foo();
$foo->bar->baz = 42;
var_dump($foo->bar->baz);

?>
--EXPECT--
int(42)