mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
RFC: https://wiki.php.net/rfc/nullsafe_operator Closes GH-5619. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
15 lines
230 B
PHP
15 lines
230 B
PHP
--TEST--
|
|
Nullsafe chains in variable variables
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = null;
|
|
var_dump(${$a?->b}->c);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $ in %s on line %d
|
|
|
|
Warning: Attempt to read property "c" on null in %s on line %d
|
|
NULL
|