mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
12 lines
184 B
Plaintext
12 lines
184 B
Plaintext
|
--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
|