title: PHP Error : Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
body: <p>I am using <strong>PHP 7.4 for a laravel application</strong> and I am getting this exception very frequently.</p>
  <pre><code>ErrorException (E_DEPRECATED)
  Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  </code></pre>
  <p>The code which triggers this exception is :</p>
  <pre><code>foreach ($allLanguages as $languageKey) {
      $original[$languageKey] =
          isset($values[$languageKey])
              ? $values[$languageKey]
              : isset($filesContent[$fileName][$languageKey][$key]) ? $filesContent[$fileName][$languageKey][$key] : '';
  }
  </code></pre>
  <p>Can any help me to resolve this issue?</p>
  <p>Found that this is E_DEPRECATED error due to some upgrade in PHP, but is there any way to <strong>resolve this exception by converting the deprecated code to latest</strong>?</p>