1--TEST--
2Test nullsafe property on reference
3--FILE--
4<?php
5
6class Foo {
7    public $bar;
8}
9
10$foo = new Foo();
11$foo->bar = 'bar';
12
13$fooRef = &$foo;
14var_dump($fooRef?->bar);
15
16?>
17--EXPECT--
18string(3) "bar"
19