diff options
Diffstat (limited to 'Zend/tests/nullsafe_operator/022.phpt')
-rw-r--r-- | Zend/tests/nullsafe_operator/022.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/nullsafe_operator/022.phpt b/Zend/tests/nullsafe_operator/022.phpt new file mode 100644 index 0000000000..2cda806a36 --- /dev/null +++ b/Zend/tests/nullsafe_operator/022.phpt @@ -0,0 +1,10 @@ +--TEST-- +Test nullsafe in unset +--FILE-- +<?php + +$foo = null; +unset($foo?->bar->baz); + +--EXPECTF-- +Fatal error: Can't use nullsafe operator in write context in %s.php on line 4 |