Skip to content

Commit 2bd57a5

Browse files
authored
PHP 8.4: Single underscore as class name is deprecated の翻訳 (#215)
1 parent cecdf14 commit 2bd57a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

language/oop5/basic.xml

Lines changed: 3 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: 1d92bcca7524c50fc41056ea4c04e1032eb9e055 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 2f85d57a0b5a01b875cbca2b291f04389cf61ac2 Maintainer: takagi Status: ready -->
44
<!-- CREDITS: hirokawa,mumumu,jdkfx -->
55

66
<sect1 xml:id="language.oop5.basic" xmlns="http://docbook.org/ns/docbook">
@@ -16,6 +16,8 @@
1616
<para>
1717
クラス名には、PHP の<link linkend="reserved">予約語</link>
1818
以外でラベルとして有効なあらゆる名前を使用することができます。
19+
PHP 8.4.0 以降では、アンダースコア (<literal>_</literal>)
20+
1文字のみのクラス名は非推奨となりました。
1921
有効なクラス名は、先頭が文字あるいはアンダースコアで始まり、
2022
その後に任意の数の文字/数字/アンダースコアが続くものです。
2123
正規表現で表すと、

0 commit comments

Comments
 (0)