Skip to content

Commit 65b4710

Browse files
committed
PHP 8.1 | Other reserved words: add never
Similar to PR 938 for the PHP 8.0 `mixed` reserved word, this commit adds the new reserved word `never` to the list of "Other reserved words" and adds a mention of this to the Backward Incompatible Changes page in the migration guide. php/doc-en@a6a4d6a
1 parent 10456bf commit 65b4710

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

appendices/migration81/incompatible.xml

Lines changed: 7 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$ -->
3-
<!-- EN-Revision: 0bafd5454e7c54de5b9e455f997bec3ecf89cfdb Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: a6a4d6ad6e4ac5e1361044cf5ec6bdd730e529ae Maintainer: mumumu Status: ready -->
44
<sect1 xml:id="migration81.incompatible" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<title>下位互換性のない変更点</title>
66

@@ -145,6 +145,12 @@ ArgumentCountError - makeyogurt(): Argument #1 ($container) not passed
145145
<para>
146146
<literal>readonly</literal> は予約されたキーワードになりました。しかし、まだ関数名としては使えます。
147147
</para>
148+
<para>
149+
<literal>never</literal> が予約語になりました。
150+
よって、クラスやインターフェイス、
151+
トレイトの名前として使えなくなっています。
152+
名前空間の中であっても同様です。
153+
</para>
148154
</sect3>
149155
</sect2>
150156

appendices/reserved.xml

Lines changed: 4 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$ -->
3-
<!-- EN-Revision: 68b5e2c562e860e2c7d385eab502029b3eed9e7a Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: a6a4d6ad6e4ac5e1361044cf5ec6bdd730e529ae 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">
@@ -552,6 +552,9 @@
552552
<entry>
553553
mixed (PHP 8.0 以降)
554554
</entry>
555+
<entry>
556+
never (PHP 8.1 以降)
557+
</entry>
555558
</row>
556559
</tbody>
557560
</tgroup>

0 commit comments

Comments
 (0)