xref: /PHP-8.2/Zend/tests/bug81216_2.phpt (revision 7e080183)
1--TEST--
2Bug #81216_2: Nullsafe operator leaks dynamic property name
3--FILE--
4<?php
5$a = [null];
6$a[1] = $a[0]?->x;
7var_dump($a);
8?>
9--EXPECT--
10array(2) {
11  [0]=>
12  NULL
13  [1]=>
14  NULL
15}
16