summaryrefslogtreecommitdiff
path: root/Zend/tests/nullsafe_operator/009.phpt
blob: 95df9dacc855c4d3eaedc29d7fb7fa39f4baa785 (plain)
1
2
3
4
5
6
7
8
9
10
11
--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