summaryrefslogtreecommitdiff
path: root/Zend/tests/nullsafe_operator/005.phpt
blob: e691401599110e1b167d31ce25c640fa92c43606 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Test nullsafe property assignment op
--FILE--
<?php

$foo = null;
$foo?->bar += 1;

?>
--EXPECTF--
Fatal error: Can't use nullsafe operator in write context in %s.php on line 4