- 🇦🇺Australia fenstrat Australia
Looks like the correct approach. #2 fixes static analysis:
The left-associativity of the ternary operator has been deprecated in PHP 7.4 and removed in PHP 8.0. Multiple consecutive ternaries detected. Use parenthesis to clarify the order in which the operations should be executed
- Status changed to Needs review
almost 2 years ago 8:12am 14 August 2023 - last update
almost 2 years ago 6 pass - 🇦🇺Australia fenstrat Australia
Actually a couple more nested ternaries needed adjusting. These things are a nightmare.