1--TEST--
2Assign by reference to backed property is allowed for &get-only
3--FILE--
4<?php
5
6class Foo {
7    public $bar = [] {
8        &get {
9            echo __METHOD__ . "\n";
10            return $this->bar;
11        }
12    }
13}
14
15$foo = new Foo;
16$foo->bar[] = 'bar';
17var_dump($foo);
18
19?>
20--EXPECTF--
21Foo::$bar::get
22object(Foo)#%d (1) {
23  ["bar"]=>
24  array(1) {
25    [0]=>
26    string(3) "bar"
27  }
28}
29