1--TEST--
2Backed prop satisfies interface get hook by-reference
3--FILE--
4<?php
5
6interface I {
7    public $prop { get; }
8}
9
10class A implements I {
11    public $prop = 42 {
12        get => $this->prop;
13    }
14}
15
16$a = new A();
17var_dump($a);
18
19?>
20--EXPECT--
21object(A)#1 (1) {
22  ["prop"]=>
23  int(42)
24}
25