1--TEST-- 2Do not leak when assigning to reference set with multiple typed properties with type coercion 3--FILE-- 4<?php 5 6class Test { 7 public string $x; 8 public string $y; 9} 10 11$test = new Test; 12$ref = ""; 13$test->x =& $ref; 14$test->y =& $ref; 15$val = 42; 16$ref = $val; 17var_dump($ref, $val); 18 19?> 20--EXPECT-- 21string(2) "42" 22int(42) 23