1--TEST-- 2Virtual get hook allows returning by reference 3--FILE-- 4<?php 5 6class A { 7 public $prop; 8} 9 10class B extends A { 11 private $_prop; 12 public $prop { 13 &get => $this->_prop; 14 set { $this->_prop = $value; } 15 } 16} 17 18?> 19--EXPECTF-- 20Fatal error: Get hook of backed property B::prop with set hook may not return by reference in %s on line %d 21