1--TEST-- 2Check for correct invalidation of prop_info cache slots 3--FILE-- 4<?php 5 6class A { 7 public int $prop; 8} 9class B { 10 public $prop; 11} 12 13function test($obj) { 14 $obj->prop = "42"; 15 var_dump($obj); 16} 17 18test(new A); 19test(new B); 20 21?> 22--EXPECT-- 23object(A)#1 (1) { 24 ["prop"]=> 25 int(42) 26} 27object(B)#1 (1) { 28 ["prop"]=> 29 string(2) "42" 30} 31