diff options
Diffstat (limited to 'Zend/tests/nullsafe_operator/009.phpt')
-rw-r--r-- | Zend/tests/nullsafe_operator/009.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/nullsafe_operator/009.phpt b/Zend/tests/nullsafe_operator/009.phpt new file mode 100644 index 0000000000..95df9dacc8 --- /dev/null +++ b/Zend/tests/nullsafe_operator/009.phpt @@ -0,0 +1,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 |