1--TEST--
2Type inference for $ary[$idx]->prop +=
3--FILE--
4<?php
5
6function test() {
7    $ary = [];
8    $ary[0]->y += 2;
9    var_dump(is_object($ary[0]));
10}
11test();
12
13?>
14--EXPECTF--
15Notice: Undefined offset: 0 in %s on line %d
16
17Warning: Creating default object from empty value in %s on line %d
18
19Notice: Undefined property: stdClass::$y in %s on line %d
20bool(true)
21