<slide>
<title>Episode #10: LSP and Operator Precedence</title>

Episode 10 — LSP and Operator Precedence — Nikita Popov
https://wiki.php.net/rfc/ternary_associativity — https://github.com/php/php-src/pull/4017/files#diff-02b0ba36e963ebca22e7f764721073a5R1
http://wiki.php.net/rfc/concatenation_precedence — Deprecate only: https://github.com/php/php-src/pull/4001/files

<blurb>What does this return?</blurb>
<example>
&lt;?php
$a = 3;
echo $a == 1 ? 'one' : $a == 2 ? 'two' : $a == 3 ? 'three' : $a == 4 ? 'four' : 'other';
?>
</example>
<div effect="fade-in">
<blurb>%four%</blurb>
</div>

<div effect="fade-in">
<break/>
<blurb>In PHP 7.4:</blurb>
<example class="error">
Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated.
  Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in example.php on line 3

Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated.
  Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in example.php on line 3

Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated.
  Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in example.php on line 3
</example>
</div>

</slide>

