mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
0a5b7c81b7
This was deprecated in PHP 7.4.
11 lines
223 B
PHP
11 lines
223 B
PHP
--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
|