summaryrefslogtreecommitdiff
path: root/Zend/tests/constant_expressions_coalesce_empty_dim.phpt
blob: b69637c98d4b9c8d5d3c6c8af3cee59d63e19e1d (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Constant expressions with empty dimension fetch on coalesce
--FILE--
<?php

const A = [][] ?? 1;

?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s.php on line %d