mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
16 lines
187 B
Plaintext
16 lines
187 B
Plaintext
|
--TEST--
|
||
|
Bug #81216_2: Nullsafe operator leaks dynamic property name
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$a = [null];
|
||
|
$a[1] = $a[0]?->x;
|
||
|
var_dump($a);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
array(2) {
|
||
|
[0]=>
|
||
|
NULL
|
||
|
[1]=>
|
||
|
NULL
|
||
|
}
|