1--TEST-- 2Test typed properties work fine with simple inheritance 3--FILE-- 4<?php 5 6class A { 7 public int $a = 1; 8} 9class B extends A {} 10 11$o = new B; 12var_dump($o->a); 13$o->a = "a"; 14 15?> 16--EXPECTF-- 17int(1) 18 19Fatal error: Uncaught TypeError: Typed property A::$a must be int, string used in %s:%d 20Stack trace: 21#0 {main} 22 thrown in %s on line %d 23