svn: /phpdoc/ja/trunk/appendices/migration74/ deprecated.xml

[email protected] (Yoshinari Takaoka) Fri, 18 Dec 2020 09:59:17 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Fri, 18 Dec 2020 09:59:17 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=352121

Log:
Fix #80528: No waring/error for some nested ternary operators without explicit parentheses

Bug: https://bugs.php.net/80528 (Closed) No waring/error for some nested ternary operators without explicit parentheses
      
Changed paths:
    U   phpdoc/ja/trunk/appendices/migration74/deprecated.xml

Modified: phpdoc/ja/trunk/appendices/migration74/deprecated.xml
===================================================================
--- phpdoc/ja/trunk/appendices/migration74/deprecated.xml	2020-12-18 09:56:07 UTC (rev 352120)
+++ phpdoc/ja/trunk/appendices/migration74/deprecated.xml	2020-12-18 09:59:17 UTC (rev 352121)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 348038 Maintainer: mumumu Status: ready -->
+<!-- EN-Revision: 352118 Maintainer: mumumu Status: ready -->

 <sect1 xml:id="migration74.deprecated">
  <title>PHP 7.4.x で推奨されなくなる機能</title>
@@ -25,6 +25,17 @@
      </programlisting>
     </informalexample>
    </para>
+   <para>
+    2番目のオペランドをネストさせる場合は、括弧は必須では <emphasis>ありません</emphasis>。
+    なぜなら、これについては曖昧さがなく、結合法則に影響がないからです。
+    <informalexample>
+     <programlisting role="php">
+<![CDATA[
+1 ? 2 ? 3 : 4 : 5 // ok
+]]>
+     </programlisting>
+    </informalexample>
+   </para>
   </sect3>

   <sect3 xml:id="migration74.deprecated.core.array-string-access-curly-brace">