1--TEST--
2By-value get may be implemented as by-reference
3--FILE--
4<?php
5
6interface I {
7    public $prop { get; }
8}
9
10class A implements I {
11    private $_prop;
12    public $prop {
13        &get => $this->_prop;
14    }
15}
16
17function test(I $i) {
18    $ref = &$i->prop;
19    $ref = 42;
20}
21
22$a = new A();
23test($a);
24var_dump($a);
25
26?>
27--EXPECT--
28object(A)#1 (1) {
29  ["_prop":"A":private]=>
30  int(42)
31}
32