1--TEST-- 2JIT ASSIGN: Assign to typed reference should return modified value 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.protect_memory=1 8--FILE-- 9<?php 10class Test { 11 public ?string $prop; 12} 13function test($val) { 14 $obj = new Test; 15 $ref =& $obj->prop; 16 var_dump($ref = $val); 17} 18test(0); 19?> 20--EXPECT-- 21string(1) "0"