1--TEST--
2JIT: FETCH_OBJ 008
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9class A {
10    public string $prop = "";
11}
12
13class B {
14    public function __toString() {
15        global $a;
16        $a->prop = "A $e B";
17        $a->prop->prop . $a->prop = "C";
18        return "test";
19    }
20}
21
22$a = new A;
23$a->prop = new B;
24?>
25DONE
26--EXPECTF--
27Warning: Undefined variable $e in %sfetch_obj_008.php on line 9
28
29Warning: Attempt to read property "prop" on string in %sfetch_obj_008.php on line 10
30DONE
31