summaryrefslogtreecommitdiff
path: root/Zend/tests/nullsafe_operator/010.phpt
blob: 9f423a7c1e32badd8471ef35e805ee0329b060fe (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Test fetch nested nullsafe property by ref
--FILE--
<?php

$foo = null;
$ref = &$foo?->bar->baz;

?>
--EXPECTF--
Fatal error: Cannot take reference of a nullsafe chain in %s.php on line 4