blob: c519e1fc0fb79848b418d61ed88d1d6cc659b6a5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--TEST--
Forbidden nested ternary, case 3
--FILE--
<?php
1 ? 2 : 3 ?: 4;
?>
--EXPECTF--
Fatal error: Unparenthesized `a ? b : c ?: d` is not supported. Use either `(a ? b : c) ?: d` or `a ? b : (c ?: d)` in %s on line %d
|