summaryrefslogtreecommitdiff
path: root/Zend/tests/nullsafe_operator/006.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/nullsafe_operator/006.phpt')
-rw-r--r--Zend/tests/nullsafe_operator/006.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/nullsafe_operator/006.phpt b/Zend/tests/nullsafe_operator/006.phpt
new file mode 100644
index 0000000000..2cbecd2dda
--- /dev/null
+++ b/Zend/tests/nullsafe_operator/006.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Test nullsafe property post increment
+--FILE--
+<?php
+
+$foo = null;
+++$foo?->bar;
+
+?>
+--EXPECTF--
+Fatal error: Can't use nullsafe operator in write context in %s.php on line 4