0

Today I am facing some issues regarding the error:

Error occurs because PHP 7.4+ no longer supports nested ternary operators without parentheses.

I have a minimal team, how effectively managed those version conflict issues?

Frequently getting version conflicts, how do you people effectively monitor those version conflict errors?

1 Answer 1

2

Just go over your code and put braces around nested ternary expressions:

$a = $b == c ? 1 : ( $d == $e ? 2 : 0 )

The only way to manage them is to upgrade PHP and Magento and all external modules at the same time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.