1--TEST--
2Test nullsafe lhs of assignment to nested property chain
3--FILE--
4<?php
5
6class Foo {
7    public $bar;
8}
9
10function bar() {
11    var_dump('called');
12}
13
14$foo = null;
15$foo?->bar->baz = bar();
16
17?>
18--EXPECTF--
19Fatal error: Can't use nullsafe operator in write context in %s.php on line 12
20