Needs review
Project:
MoneySuite
Version:
7.x-10.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Apr 2021 at 16:53 UTC
Updated:
14 Aug 2023 at 08:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
spokjeComment #3
tonka67 commentedPatch applies clean and appears to have resolved the issue. Thanks!
Comment #4
fenstratLooks 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 executedComment #5
fenstratActually a couple more nested ternaries needed adjusting. These things are a nightmare.