From 26ecf1b467cda4ff14a4dfefd89f57c87044a9db 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: Tue, 28 Jul 2026 23:32:59 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=8C=E3=82=AA=E3=83=BC=E3=83=90?= =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=89=E3=80=8D=E3=82=92=E7=94=A8=E8=AA=9E?= =?UTF-8?q?=E9=9B=86=E3=81=AB=E6=B2=BF=E3=81=A3=E3=81=A6=E3=80=8C=E3=82=AA?= =?UTF-8?q?=E3=83=BC=E3=83=90=E3=83=BC=E3=83=A9=E3=82=A4=E3=83=89=E3=80=8D?= =?UTF-8?q?=E3=81=AB=E7=B5=B1=E4=B8=80=EF=BC=884=E3=83=95=E3=82=A1?= =?UTF-8?q?=E3=82=A4=E3=83=AB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appendices/migration81/incompatible.xml | 2 +- language/oop5/basic.xml | 2 +- language/oop5/decon.xml | 2 +- language/oop5/interfaces.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/appendices/migration81/incompatible.xml b/appendices/migration81/incompatible.xml index 2c6338022f..cb89b7760d 100644 --- a/appendices/migration81/incompatible.xml +++ b/appendices/migration81/incompatible.xml @@ -129,7 +129,7 @@ ArgumentCountError - makeyogurt(): Argument #1 ($container) not passed ほとんどの final でない内部メソッドは、 - それをオーバライドする際、 + それをオーバーライドする際、 互換性がある戻り値の型を宣言することが必須になりました。 そうしない場合、継承が有効かを検証する際に、 推奨されない警告が発生するようになります。 diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index e3caca857b..9e1d3e7c54 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -564,7 +564,7 @@ Parent Class 但し、コンストラクタ と private メソッドについては、 この規則の例外で、 - オーバライドしたシグネチャにミスマッチがあっても致命的なエラーにはなりません。 + オーバーライドしたシグネチャにミスマッチがあっても致命的なエラーにはなりません。 互換性がある子クラスのメソッド diff --git a/language/oop5/decon.xml b/language/oop5/decon.xml index 8fd7ab2c8e..3c9a35abc9 100644 --- a/language/oop5/decon.xml +++ b/language/oop5/decon.xml @@ -67,7 +67,7 @@ $obj = new OtherSubClass(); 他のメソッドと異なり、__construct() - を子クラスでオーバライドしても、 + を子クラスでオーバーライドしても、 シグネチャの互換性に関するルール は適用されません。 diff --git a/language/oop5/interfaces.xml b/language/oop5/interfaces.xml index eda6ec7164..e39c5a5577 100644 --- a/language/oop5/interfaces.xml +++ b/language/oop5/interfaces.xml @@ -379,7 +379,7 @@ class B implements A } // Class constant と表示します。 -// PHP 8.1.0 より前のバージョンでは、定数をオーバライドできなかったため、これは動作しませんでした。 +// PHP 8.1.0 より前のバージョンでは、定数をオーバーライドできなかったため、これは動作しませんでした。 echo B::B; ?> ]]> From cdcddb1e76daba36f417de9490bb1defa040f930 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: Tue, 28 Jul 2026 23:34:14 +0900 Subject: [PATCH 2/2] =?UTF-8?q?prh.yml=20=E3=81=AB=E3=80=8C=E3=82=AA?= =?UTF-8?q?=E3=83=BC=E3=83=90=E3=83=A9=E3=82=A4=E3=83=89=E3=80=8D=E2=86=92?= =?UTF-8?q?=E3=80=8C=E3=82=AA=E3=83=BC=E3=83=90=E3=83=BC=E3=83=A9=E3=82=A4?= =?UTF-8?q?=E3=83=89=E3=80=8D=E3=81=AE=E3=83=AB=E3=83=BC=E3=83=AB=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/prh.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/prh.yml b/build/prh.yml index a4186b51d5..3389e4e3a9 100644 --- a/build/prh.yml +++ b/build/prh.yml @@ -51,6 +51,13 @@ rules: to: サーバー - from: サーバー to: サーバー + - expected: オーバーライド + pattern: /オーバ(?!ー)ライド/ + specs: + - from: オーバライド + to: オーバーライド + - from: オーバーライド + to: オーバーライド - expected: WHATWG URL Standard pattern: WHATWG URL 標準 specs: