summaryrefslogtreecommitdiff
path: root/Zend/tests/nullsafe_operator/029.phpt
blob: 92a17ef7c012b9661f2d58358d12e8fe533ccbf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Refcount of constant LHS with nullsafe operator
--FILE--
<?php
['']?->a;
__DIR__?->a;
?>
--EXPECTF--
Warning: Attempt to read property "a" on array in %s on line %d

Warning: Attempt to read property "a" on string in %s on line %d