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