From 931eae255a7e0ef62bf624a0c2336f15f2fa30a4 Mon Sep 17 00:00:00 2001 From: IWASE Shigeaki Date: Sun, 15 Dec 2024 16:35:57 +0900 Subject: [PATCH] =?UTF-8?q?PHP=208.4:=20Single=20underscore=20as=20class?= =?UTF-8?q?=20name=20is=20deprecated=20=E3=81=AE=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- language/oop5/basic.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index c5f863029e..06f8767769 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -1,6 +1,6 @@ - + @@ -16,6 +16,8 @@ クラス名には、PHP の予約語 以外でラベルとして有効なあらゆる名前を使用することができます。 + PHP 8.4.0 以降では、アンダースコア (_) + 1文字のみのクラス名は非推奨となりました。 有効なクラス名は、先頭が文字あるいはアンダースコアで始まり、 その後に任意の数の文字/数字/アンダースコアが続くものです。 正規表現で表すと、