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.jit_buffer_size=1M 8opcache.protect_memory=1 9--FILE-- 10<?php 11class Test { 12 public ?string $prop; 13} 14function test($val) { 15 $obj = new Test; 16 $ref =& $obj->prop; 17 var_dump($ref = $val); 18} 19test(0); 20?> 21--EXPECT-- 22string(1) "0"