1--TEST-- 2Allow calling parent get in property hooks 3--FILE-- 4<?php 5 6class A { 7 public int $prop { 8 get { 9 return 41; 10 } 11 } 12} 13 14class B extends A { 15 public int $prop { 16 get { 17 return parent::$prop::get() + 1; 18 } 19 } 20} 21 22$a = new A; 23var_dump($a->prop); 24 25$b = new B; 26var_dump($b->prop); 27 28?> 29--EXPECT-- 30int(41) 31int(42) 32