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=function
8--FILE--
9<?php
10class Test {
11    public $prop;
12    public int $prop2;
13}
14function test() {
15    $o = new Test;
16    $o->prop = $undef;
17    var_dump($o->prop);
18}
19function test2() {
20    $o = new Test;
21    $o->prop2 = $undef;
22}
23test();
24try {
25    test2();
26} catch (TypeError $e) {
27    echo $e->getMessage(), "\n";
28}
29?>
30--EXPECTF--
31Warning: Undefined variable $undef in %s on line %d
32NULL
33
34Warning: Undefined variable $undef in %s on line %d
35Cannot assign null to property Test::$prop2 of type int
36