4 ms·
> nested ternary operators without explicit parentheses This also seems like a first step toward fixing associativity of the ternary operator, one of the most
by nwellnhof 7y ago
> nested ternary operators without explicit parentheses
This also seems like a first step toward fixing associativity of the ternary operator, one of the most ridiculous deficiencies of the PHP language.
- duskwuff 7y agoThat's exactly the intent of this change. "Future Scope: We could make the ternary right-associative in a later release, after it has been an error for a while." https://wiki.php.net/rfc/ternary_associativity https://wiki.php.net/rfc/ternary_associativity