From 7ffcfe135aa29efdc7085c31ee1965af9a74fcf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Fri, 15 Nov 2024 22:33:00 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E7=89=88=E7=8A=B6?= =?UTF-8?q?=E6=85=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- language/predefined/attributes.xml | 3 +- language/predefined/attributes/deprecated.xml | 141 ++++++++++++++++++ .../attributes/deprecated/construct.xml | 64 ++++++++ .../reflectionclassconstant/isdeprecated.xml | 92 ++++++++++++ 4 files changed, 299 insertions(+), 1 deletion(-) create mode 100644 language/predefined/attributes/deprecated.xml create mode 100644 language/predefined/attributes/deprecated/construct.xml create mode 100644 reference/reflection/reflectionclassconstant/isdeprecated.xml diff --git a/language/predefined/attributes.xml b/language/predefined/attributes.xml index 49734b6c453..eaced5e7bf1 100644 --- a/language/predefined/attributes.xml +++ b/language/predefined/attributes.xml @@ -1,6 +1,6 @@ - + 定義済みのアトリビュート @@ -12,6 +12,7 @@ &language.predefined.attributes.attribute; &language.predefined.attributes.allowdynamicproperties; + &language.predefined.attributes.deprecated; &language.predefined.attributes.override; &language.predefined.attributes.returntypewillchange; &language.predefined.attributes.sensitiveparameter; diff --git a/language/predefined/attributes/deprecated.xml b/language/predefined/attributes/deprecated.xml new file mode 100644 index 00000000000..0d7bfe4051f --- /dev/null +++ b/language/predefined/attributes/deprecated.xml @@ -0,0 +1,141 @@ + + + + + + The Deprecated attribute + Deprecated + + + +
+ &reftitle.intro; + + This attribute is used to mark functionality as deprecated. + Using deprecated functionality will cause an E_USER_DEPRECATED error to be emitted. + +
+ +
+ &reftitle.classsynopsis; + + + + final + Deprecated + + + &Properties; + + public + readonly + stringnull + message + + + public + readonly + stringnull + since + + + &Methods; + + + + +
+ +
+ &reftitle.properties; + + + message + + + An optional message explaining the reason for the deprecation and possible replacement functionality. + Will be included in the emitted deprecation message. + + + + + since + + + An optional string indicating since when the functionality is deprecated. + The contents are not validated by PHP and may contain a version number, + a date or any other value that is considered appropriate. + Will be included in the emitted deprecation message. + + + Functionality that is part of PHP will use Major.Minor as the since value, + for example '8.4'. + + + + +
+ +
+ &reftitle.examples; + + + +]]> + + &example.outputs.84.similar; + + + + +
+ +
+ &reftitle.seealso; + + Attributes overview + ReflectionFunctionAbstract::isDeprecated + ReflectionClassConstant::isDeprecated + E_USER_DEPRECATED + +
+ +
+ + &language.predefined.attributes.deprecated.construct; + +
+ diff --git a/language/predefined/attributes/deprecated/construct.xml b/language/predefined/attributes/deprecated/construct.xml new file mode 100644 index 00000000000..95d22cf94c8 --- /dev/null +++ b/language/predefined/attributes/deprecated/construct.xml @@ -0,0 +1,64 @@ + + + + + + + Deprecated::__construct + Construct a new Deprecated attribute instance + + + + &reftitle.description; + + public Deprecated::__construct + stringnullmessage&null; + stringnullsince&null; + + + Constructs a new Deprecated instance. + + + + + &reftitle.parameters; + + + message + + + The value of the message property. + + + + + since + + + The value of the since property. + + + + + + + diff --git a/reference/reflection/reflectionclassconstant/isdeprecated.xml b/reference/reflection/reflectionclassconstant/isdeprecated.xml new file mode 100644 index 00000000000..fa0cc835b55 --- /dev/null +++ b/reference/reflection/reflectionclassconstant/isdeprecated.xml @@ -0,0 +1,92 @@ + + + + + + + ReflectionClassConstant::isDeprecated + Checks if deprecated + + + + &reftitle.description; + + public boolReflectionClassConstant::isDeprecated + + + + Checks whether the class constant is deprecated. + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + &true; if it's deprecated, otherwise &false; + + + + + &reftitle.examples; + + + <methodname>ReflectionClassConstant::isDeprecated</methodname> example + + +isDeprecated()); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Deprecated + ReflectionClassConstant::getDocComment + + + + + From 79ab568c5f30e4980ee3499d991c7a0fdf9b12a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Fri, 15 Nov 2024 23:23:05 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[PHP=208.4]=20=E3=80=8CDeprecated=E3=82=A2?= =?UTF-8?q?=E3=83=88=E3=83=AA=E3=83=93=E3=83=A5=E3=83=BC=E3=83=88=E3=80=8D?= =?UTF-8?q?=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/predefined/attributes/deprecated.xml | 24 +++++++++---------- .../attributes/deprecated/construct.xml | 8 +++---- .../reflectionclassconstant/isdeprecated.xml | 8 +++---- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/language/predefined/attributes/deprecated.xml b/language/predefined/attributes/deprecated.xml index 0d7bfe4051f..ff1bab94e86 100644 --- a/language/predefined/attributes/deprecated.xml +++ b/language/predefined/attributes/deprecated.xml @@ -3,7 +3,7 @@ - The Deprecated attribute + Deprecated クラス Deprecated @@ -11,8 +11,8 @@
&reftitle.intro; - This attribute is used to mark functionality as deprecated. - Using deprecated functionality will cause an E_USER_DEPRECATED error to be emitted. + このアトリビュートは、機能を非推奨としてマークします。 + マークされた機能を使用すると、E_USER_DEPRECATED エラーが発生します。
@@ -53,8 +53,8 @@ message - An optional message explaining the reason for the deprecation and possible replacement functionality. - Will be included in the emitted deprecation message. + 非推奨となった理由と可能なら代替機能を説明する追加のメッセージ。 + 発生する非推奨エラーのメッセージに含まれます。 @@ -62,14 +62,14 @@ since - An optional string indicating since when the functionality is deprecated. - The contents are not validated by PHP and may contain a version number, - a date or any other value that is considered appropriate. - Will be included in the emitted deprecation message. + 機能がいつから非推奨になったかを示す追加の文字列。 + 内容は PHP によって検証されず、バージョン番号、日付、 + または適切と考えられる他の値を含むことができます。 + 発生する非推奨エラーのメッセージに含まれます。 - Functionality that is part of PHP will use Major.Minor as the since value, - for example '8.4'. + PHP 自体の機能は、since の値として Major.Minor を利用します。 + 例えば '8.4' です。 @@ -107,7 +107,7 @@ This is unsafe
&reftitle.seealso; - Attributes overview + アトリビュートの概要 ReflectionFunctionAbstract::isDeprecated ReflectionClassConstant::isDeprecated E_USER_DEPRECATED diff --git a/language/predefined/attributes/deprecated/construct.xml b/language/predefined/attributes/deprecated/construct.xml index 95d22cf94c8..52cd1b61d7c 100644 --- a/language/predefined/attributes/deprecated/construct.xml +++ b/language/predefined/attributes/deprecated/construct.xml @@ -5,7 +5,7 @@ Deprecated::__construct - Construct a new Deprecated attribute instance + 新しい Deprecated のインスタンスを作成する @@ -16,7 +16,7 @@ stringnullsince&null; - Constructs a new Deprecated instance. + 新しい Deprecated のインスタンスを作成します。 @@ -27,7 +27,7 @@ message - The value of the message property. + message プロパティの値。 @@ -35,7 +35,7 @@ since - The value of the since property. + since プロパティの値。 diff --git a/reference/reflection/reflectionclassconstant/isdeprecated.xml b/reference/reflection/reflectionclassconstant/isdeprecated.xml index fa0cc835b55..e098150c5d1 100644 --- a/reference/reflection/reflectionclassconstant/isdeprecated.xml +++ b/reference/reflection/reflectionclassconstant/isdeprecated.xml @@ -5,7 +5,7 @@ ReflectionClassConstant::isDeprecated - Checks if deprecated + クラス定数が非推奨かどうかを調べる @@ -15,7 +15,7 @@ - Checks whether the class constant is deprecated. + クラス定数が非推奨かどうかを調べます。 @@ -28,7 +28,7 @@ &reftitle.returnvalues; - &true; if it's deprecated, otherwise &false; + クラス定数が非推奨なら &true; を、そうでなければ &false; を返します。 @@ -36,7 +36,7 @@ &reftitle.examples; - <methodname>ReflectionClassConstant::isDeprecated</methodname> example + <methodname>ReflectionClassConstant::isDeprecated</methodname> の例