3 ms·
Typed properties and arrow functions are great, but I'm also happy to see the deprecations in this release. E.g. nested ternary operators without explicit paren
by theodorejb 7y ago
Typed properties and arrow functions are great, but I'm also happy to see the deprecations in this release. E.g. nested ternary operators without explicit parentheses (such use was almost always a mistake).
Full list here: https://www.php.net/manual/en/migration74.deprecated.php https://www.php.net/manual/en/migration74.deprecated.php. Some of the deprecations pave the way for performance improvements in PHP 8.
- 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