1--TEST-- 2JIT ASSIGN_OBJ: Assign undefined vatiable to property 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.jit_buffer_size=1M 8opcache.jit=function 9--FILE-- 10<?php 11class Test { 12 public $prop; 13 public int $prop2; 14} 15function test() { 16 $o = new Test; 17 $o->prop = $undef; 18 var_dump($o->prop); 19} 20function test2() { 21 $o = new Test; 22 $o->prop2 = $undef; 23} 24test(); 25try { 26 test2(); 27} catch (TypeError $e) { 28 echo $e->getMessage(), "\n"; 29} 30?> 31--EXPECTF-- 32Warning: Undefined variable $undef in %s on line %d 33NULL 34 35Warning: Undefined variable $undef in %s on line %d 36Cannot assign null to property Test::$prop2 of type int 37