From 2af3e645094e9c1f36228b44da74e6b9923efbea Mon Sep 17 00:00:00 2001 From: IWASE Shigeaki Date: Fri, 20 Dec 2024 14:53:21 +0900 Subject: [PATCH 1/3] =?UTF-8?q?PHP=208.4:=20Document=20reflection=20change?= =?UTF-8?q?s=20=E3=82=92=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/php/doc-en/pull/4037 --- reference/reflection/reflectionattribute.xml | 45 ++++++++- .../reflection/reflectionmethod/construct.xml | 8 +- reference/reflection/reflectionproperty.xml | 91 ++++++++++++++++++- .../reflection/reflectionproperty/islazy.xml | 2 +- .../setrawvaluewithoutlazyinitialization.xml | 4 +- 5 files changed, 144 insertions(+), 6 deletions(-) diff --git a/reference/reflection/reflectionattribute.xml b/reference/reflection/reflectionattribute.xml index 77da7e11180..86e5c0908bf 100644 --- a/reference/reflection/reflectionattribute.xml +++ b/reference/reflection/reflectionattribute.xml @@ -1,6 +1,6 @@ - + ReflectionAttribute クラス @@ -41,6 +41,13 @@ ReflectionAttribute::IS_INSTANCEOF + &Properties; + + public + string + name + + &Methods; @@ -53,6 +60,20 @@ +
+ &reftitle.properties; + + + name + + + アトリビュート名。 + + + + +
+
&reftitle.constants; @@ -82,6 +103,28 @@
+
+ &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + ReflectionAttribute::$name プロパティが追加されました。 + + + + + +
+ &reference.reflection.entities.reflectionattribute; diff --git a/reference/reflection/reflectionmethod/construct.xml b/reference/reflection/reflectionmethod/construct.xml index 999963198f0..f802f1a4bb2 100644 --- a/reference/reflection/reflectionmethod/construct.xml +++ b/reference/reflection/reflectionmethod/construct.xml @@ -1,6 +1,6 @@ - + @@ -21,6 +21,12 @@ public ReflectionMethod::__construct stringclassMethod + + + この代替のシグネチャは PHP 8.4.0 以降で非推奨となりました。 + 代わりに ReflectionMethod::createFromMethodName を使用してください。 + + 新しい ReflectionMethod を作成します。 diff --git a/reference/reflection/reflectionproperty.xml b/reference/reflection/reflectionproperty.xml index 97aadab1ff5..001ca11f511 100644 --- a/reference/reflection/reflectionproperty.xml +++ b/reference/reflection/reflectionproperty.xml @@ -1,6 +1,6 @@ - + @@ -64,6 +64,36 @@ int ReflectionProperty::IS_PRIVATE + + public + const + int + ReflectionProperty::IS_ABSTRACT + + + public + const + int + ReflectionProperty::IS_PROTECTED_SET + + + public + const + int + ReflectionProperty::IS_PRIVATE_SET + + + public + const + int + ReflectionProperty::IS_VIRTUAL + + + public + const + int + ReflectionProperty::IS_FINAL + &Properties; @@ -179,6 +209,55 @@ + + ReflectionProperty::IS_ABSTRACT + + + abstract + プロパティを示します。 + PHP 8.4.0 以降で利用可能です。 + + + + + + ReflectionProperty::IS_PROTECTED_SET + + + PHP 8.4.0 以降で利用可能です。 + + + + + + ReflectionProperty::IS_PRIVATE_SET + + + PHP 8.4.0 以降で利用可能です。 + + + + + + ReflectionProperty::IS_VIRTUAL + + + PHP 8.4.0 以降で利用可能です。 + + + + + + ReflectionProperty::IS_FINAL + + + final + プロパティを示します。 + PHP 8.4.0 以降で利用可能です。 + + + + @@ -201,6 +280,16 @@ + + 8.4.0 + + ReflectionProperty::IS_VIRTUAL、 + ReflectionProperty::IS_PRIVATE_SET、 + ReflectionProperty::IS_PROTECTED_SET、 + ReflectionProperty::IS_ABSTRACT、 + ReflectionProperty::IS_FINAL が追加されました。 + + 8.0.0 diff --git a/reference/reflection/reflectionproperty/islazy.xml b/reference/reflection/reflectionproperty/islazy.xml index 546e0bd3f78..2c6cc292ee6 100644 --- a/reference/reflection/reflectionproperty/islazy.xml +++ b/reference/reflection/reflectionproperty/islazy.xml @@ -11,7 +11,7 @@ &reftitle.description; - + public boolReflectionProperty::isLazy objectobject diff --git a/reference/reflection/reflectionproperty/setrawvaluewithoutlazyinitialization.xml b/reference/reflection/reflectionproperty/setrawvaluewithoutlazyinitialization.xml index 5d2a6f1222b..626f4b293a5 100644 --- a/reference/reflection/reflectionproperty/setrawvaluewithoutlazyinitialization.xml +++ b/reference/reflection/reflectionproperty/setrawvaluewithoutlazyinitialization.xml @@ -1,6 +1,6 @@ - + @@ -13,7 +13,7 @@ public voidReflectionProperty::setRawValueWithoutLazyInitialization objectobject - mixednullvalue + mixedvalue 遅延初期化をトリガーせず、フック関数も呼び出さずに、 From 5639974844dea7997ab8a25e5f483112c1957849 Mon Sep 17 00:00:00 2001 From: IWASE Shigeaki Date: Mon, 23 Dec 2024 00:58:03 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[PHP=208.4]=20Add=20class=20constant=20type?= =?UTF-8?q?s=20for=20Reflection=20=E3=82=92=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/php/doc-en/pull/4244/files --- reference/reflection/reflectionattribute.xml | 13 ++++- reference/reflection/reflectionclass.xml | 38 +++++++++--- .../reflection/reflectionclassconstant.xml | 28 +++++++-- reference/reflection/reflectionfunction.xml | 13 ++++- reference/reflection/reflectionmethod.xml | 38 +++++++++--- reference/reflection/reflectionproperty.xml | 58 +++++++++++++++---- 6 files changed, 154 insertions(+), 34 deletions(-) diff --git a/reference/reflection/reflectionattribute.xml b/reference/reflection/reflectionattribute.xml index 86e5c0908bf..3cbcf1e4252 100644 --- a/reference/reflection/reflectionattribute.xml +++ b/reference/reflection/reflectionattribute.xml @@ -1,6 +1,6 @@ - + ReflectionAttribute クラス @@ -82,7 +82,10 @@ - ReflectionAttribute::IS_INSTANCEOF + + ReflectionAttribute::IS_INSTANCEOF + int + instanceof のチェックを使い、 @@ -114,6 +117,12 @@ + + 8.4.0 + + すべてのクラス定数が型付けされました。 + + 8.4.0 diff --git a/reference/reflection/reflectionclass.xml b/reference/reflection/reflectionclass.xml index 8194f5a9505..f22dbe6d6ce 100644 --- a/reference/reflection/reflectionclass.xml +++ b/reference/reflection/reflectionclass.xml @@ -1,6 +1,6 @@ - + ReflectionClass クラス @@ -116,7 +116,10 @@ - ReflectionClass::IS_IMPLICIT_ABSTRACT + + ReflectionClass::IS_IMPLICIT_ABSTRACT + int + 抽象メソッドを持っているので @@ -126,7 +129,10 @@ - ReflectionClass::IS_EXPLICIT_ABSTRACT + + ReflectionClass::IS_EXPLICIT_ABSTRACT + int + その定義から @@ -136,7 +142,10 @@ - ReflectionClass::IS_FINAL + + ReflectionClass::IS_FINAL + int + final クラスであることを示します。 @@ -145,7 +154,10 @@ - ReflectionClass::IS_READONLY + + ReflectionClass::IS_READONLY + int + readonly クラスであることを示します。 @@ -154,7 +166,10 @@ - ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE + + ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE + int + serializeがレイジーオブジェクトの初期化を @@ -164,7 +179,10 @@ - ReflectionClass::SKIP_DESTRUCTOR + + ReflectionClass::SKIP_DESTRUCTOR + int + オブジェクトをレイジーにリセットする時に、 @@ -189,6 +207,12 @@ + + 8.4.0 + + クラス定数が型付けされました。 + + 8.0.0 diff --git a/reference/reflection/reflectionclassconstant.xml b/reference/reflection/reflectionclassconstant.xml index b825885e29b..a14df5b5928 100644 --- a/reference/reflection/reflectionclassconstant.xml +++ b/reference/reflection/reflectionclassconstant.xml @@ -1,6 +1,6 @@ - + ReflectionClassConstant クラス @@ -116,7 +116,10 @@ - ReflectionClassConstant::IS_PUBLIC + + ReflectionClassConstant::IS_PUBLIC + int + アクセス権が public であることを示します。 @@ -126,7 +129,10 @@ - ReflectionClassConstant::IS_PROTECTED + + ReflectionClassConstant::IS_PROTECTED + int + アクセス権が protected であることを示します。 @@ -136,7 +142,10 @@ - ReflectionClassConstant::IS_PRIVATE + + ReflectionClassConstant::IS_PRIVATE + int + アクセス権が private であることを示します。 @@ -146,7 +155,10 @@ - ReflectionClassConstant::IS_FINAL + + ReflectionClassConstant::IS_FINAL + int + 定数が @@ -180,6 +192,12 @@ + 8.4.0 + + クラス定数が型付けされました。 + + + 8.0.0 ReflectionClassConstant::export は、削除されました。 diff --git a/reference/reflection/reflectionfunction.xml b/reference/reflection/reflectionfunction.xml index 778435b8e4d..6fc920c59c9 100644 --- a/reference/reflection/reflectionfunction.xml +++ b/reference/reflection/reflectionfunction.xml @@ -1,6 +1,6 @@ - + ReflectionFunction クラス @@ -69,7 +69,10 @@ - ReflectionFunction::IS_DEPRECATED + + ReflectionFunction::IS_DEPRECATED + int + 非推奨の関数であることを示します。 @@ -93,6 +96,12 @@ + + 8.4.0 + + クラス定数が型付けされました。 + + 8.0.0 diff --git a/reference/reflection/reflectionmethod.xml b/reference/reflection/reflectionmethod.xml index 0cc92c59b8a..5078a19798d 100644 --- a/reference/reflection/reflectionmethod.xml +++ b/reference/reflection/reflectionmethod.xml @@ -1,6 +1,6 @@ - + ReflectionMethod クラス @@ -129,7 +129,10 @@ - ReflectionMethod::IS_STATIC + + ReflectionMethod::IS_STATIC + int + メソッドが static であることを示します。 @@ -139,7 +142,10 @@ - ReflectionMethod::IS_PUBLIC + + ReflectionMethod::IS_PUBLIC + int + メソッドが public であることを示します。 @@ -149,7 +155,10 @@ - ReflectionMethod::IS_PROTECTED + + ReflectionMethod::IS_PROTECTED + int + メソッドが protected であることを示します。 @@ -159,7 +168,10 @@ - ReflectionMethod::IS_PRIVATE + + ReflectionMethod::IS_PRIVATE + int + メソッドが private であることを示します。 @@ -169,7 +181,10 @@ - ReflectionMethod::IS_ABSTRACT + + ReflectionMethod::IS_ABSTRACT + int + メソッドが abstract であることを示します。 @@ -179,7 +194,10 @@ - ReflectionMethod::IS_FINAL + + ReflectionMethod::IS_FINAL + int + メソッドが final であることを示します。 @@ -210,6 +228,12 @@ + + 8.4.0 + + クラス定数が型付けされました。 + + 8.0.0 diff --git a/reference/reflection/reflectionproperty.xml b/reference/reflection/reflectionproperty.xml index 001ca11f511..34817b51f5b 100644 --- a/reference/reflection/reflectionproperty.xml +++ b/reference/reflection/reflectionproperty.xml @@ -1,6 +1,6 @@ - + @@ -155,7 +155,10 @@ - ReflectionProperty::IS_STATIC + + ReflectionProperty::IS_STATIC + int + static @@ -166,7 +169,10 @@ - ReflectionProperty::IS_READONLY + + ReflectionProperty::IS_READONLY + int + readonly @@ -177,7 +183,10 @@ - ReflectionProperty::IS_PUBLIC + + ReflectionProperty::IS_PUBLIC + int + public @@ -188,7 +197,10 @@ - ReflectionProperty::IS_PROTECTED + + ReflectionProperty::IS_PROTECTED + int + protected @@ -199,7 +211,10 @@ - ReflectionProperty::IS_PRIVATE + + ReflectionProperty::IS_PRIVATE + int + private @@ -210,7 +225,10 @@ - ReflectionProperty::IS_ABSTRACT + + ReflectionProperty::IS_ABSTRACT + int + abstract @@ -221,7 +239,10 @@ - ReflectionProperty::IS_PROTECTED_SET + + ReflectionProperty::IS_PROTECTED_SET + int + PHP 8.4.0 以降で利用可能です。 @@ -230,7 +251,10 @@ - ReflectionProperty::IS_PRIVATE_SET + + ReflectionProperty::IS_PRIVATE_SET + int + PHP 8.4.0 以降で利用可能です。 @@ -239,7 +263,10 @@ - ReflectionProperty::IS_VIRTUAL + + ReflectionProperty::IS_VIRTUAL + int + PHP 8.4.0 以降で利用可能です。 @@ -248,7 +275,10 @@ - ReflectionProperty::IS_FINAL + + ReflectionProperty::IS_FINAL + int + final @@ -280,6 +310,12 @@ + + 8.4.0 + + クラス定数が型付けされました。 + + 8.4.0 From b636c54b7ff6c60218649776400c89a1f395707c 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: Mon, 23 Dec 2024 14:05:26 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=87=E3=83=B3?= =?UTF-8?q?=E3=83=88=E5=BE=AE=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/reflection/reflectionattribute.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/reflection/reflectionattribute.xml b/reference/reflection/reflectionattribute.xml index 3cbcf1e4252..2b4db960d7f 100644 --- a/reference/reflection/reflectionattribute.xml +++ b/reference/reflection/reflectionattribute.xml @@ -126,7 +126,7 @@ 8.4.0 - ReflectionAttribute::$name プロパティが追加されました。 + ReflectionAttribute::$name プロパティが追加されました。