summaryrefslogtreecommitdiff
path: root/Zend/tests/nullsafe_operator/017.phpt
blob: b38a371bf036cd55bf90380e4f63411f4fbb57ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Test return nullsafe as ref
--FILE--
<?php

function &get_bar_ref($foo) {
    return $foo?->bar;
}

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