Skip to content

Commit 3da0cf9

Browse files
committed
mixed is a reserved word (not keyword!) as of PHP 8.0.0.
ようやっとマージできました。ありがとう cmb ! php/doc-en@68b5e2c
1 parent 00563c9 commit 3da0cf9

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

appendices/migration80/incompatible.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision: 351500 $ -->
3-
<!-- EN-Revision: afbe8ad5ba46fb615d5723e25dfef4813279626f Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 68b5e2c562e860e2c7d385eab502029b3eed9e7a Maintainer: mumumu Status: ready -->
44

55
<sect1 xml:id="migration80.incompatible" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<title>下位互換性のない変更点</title>
@@ -73,6 +73,14 @@
7373
<literal>match</literal> が予約語になりました。
7474
</para>
7575
</listitem>
76+
<listitem>
77+
<para>
78+
<literal>mixed</literal> が予約語になりました。
79+
よって、クラスやインターフェイス、
80+
トレイトの名前として使えなくなっています。
81+
名前空間の中であっても同様です。
82+
</para>
83+
</listitem>
7684
<listitem>
7785
<para>
7886
アサーションに失敗すると、デフォルトで例外をスローするようになりました。

appendices/reserved.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: a049ea0cfbd4bf2554f0a134d4f0696d3d419b9b Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 68b5e2c562e860e2c7d385eab502029b3eed9e7a Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: takagi,mumumu -->
55

66
<appendix xml:id="reserved" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -549,6 +549,9 @@
549549
<entry>
550550
object (PHP 7.2 以降)
551551
</entry>
552+
<entry>
553+
mixed (PHP 8.0 以降)
554+
</entry>
552555
</row>
553556
</tbody>
554557
</tgroup>
@@ -568,9 +571,6 @@
568571
<entry>
569572
resource
570573
</entry>
571-
<entry>
572-
mixed
573-
</entry>
574574
<entry>
575575
numeric
576576
</entry>

0 commit comments

Comments
 (0)