Oops error. Deprecated Parenthesis

I am getting the following errors. Might site is completely unusable, but the automated emails are still firing.

[2020-01-23 02:49:20] production.ERROR: ErrorException [0] : /home/longbark/public_html/billing/app/Models/Account.php [Line 1126] => Unparenthesized a ? b : c ?: d is deprecated. Use either (a ? b : c) ?: d or a ? b : (c ?: d)

The line in question is 1126 which is below. Not sure the resolution.

$currencyId = ($client && $client->currency_id) ? $client->currency_id : $this->currency_id ?: DEFAULT_CURRENCY;

Which version of PHP are you using?

7.4

well, turned out to be easy fix

        $currencyId = (($client && $client->currency_id) ? $client->currency_id : $this->currency_id) ?: DEFAULT_CURRENCY;

Thanks, 7.4 isn’t supported

Perfect!!