mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
0a5b7c81b7
This was deprecated in PHP 7.4.
11 lines
235 B
PHP
11 lines
235 B
PHP
--TEST--
|
|
Forbidden nested ternary, case 1
|
|
--FILE--
|
|
<?php
|
|
|
|
1 ? 2 : 3 ? 4 : 5;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in %s on line %d
|