mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
0a5b7c81b7
This was deprecated in PHP 7.4.
11 lines
223 B
PHP
11 lines
223 B
PHP
--TEST--
|
|
Forbidden nested ternary, case 2
|
|
--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
|