mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
9bf119832d
RFC: https://wiki.php.net/rfc/nullsafe_operator Closes GH-5619. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
12 lines
184 B
PHP
12 lines
184 B
PHP
--TEST--
|
|
Test fetch nullsafe property by ref
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = null;
|
|
$ref = &$foo?->bar
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot take reference of a nullsafe chain in %s.php on line 4
|