title: PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
body: <p>After upgrading PHP version from 7.3 to 7.4 I'm getting one deprecated issue.</p>
  <pre><code>[27-Nov-2020 01:14:32 UTC] PHP Deprecated:  Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/lankalk/public_html/chat/sender.php on line 364
  </code></pre>
  <p>In line 364 and 365 of sender.php has following code:</p>
  <pre><code>$img_ext = ($image_sizes[2] == 1)? &quot;gif&quot;:
              ($image_sizes[2] == 2) ? &quot;jpg&quot;:&quot;png&quot;;
  </code></pre>
  <p>Please suggest me code upgrade</p>