Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appendices/migration81/incompatible.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ ArgumentCountError - makeyogurt(): Argument #1 ($container) not passed

<para>
ほとんどの final でない内部メソッドは、
それをオーバライドする際
それをオーバーライドする際
互換性がある戻り値の型を宣言することが必須になりました。
そうしない場合、継承が有効かを検証する際に、
推奨されない警告が発生するようになります。
Expand Down
7 changes: 7 additions & 0 deletions build/prh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ rules:
to: サーバー
- from: サーバー
to: サーバー
- expected: オーバーライド
pattern: /オーバ(?!ー)ライド/
specs:
- from: オーバライド
to: オーバーライド
- from: オーバーライド
to: オーバーライド
- expected: WHATWG URL Standard
pattern: WHATWG URL 標準
specs:
Expand Down
2 changes: 1 addition & 1 deletion language/oop5/basic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ Parent Class
但し、<link linkend="language.oop5.decon.constructor">コンストラクタ</link>
と <literal>private</literal> メソッドについては、
この規則の例外で、
オーバライドしたシグネチャにミスマッチがあっても致命的なエラーにはなりません
オーバーライドしたシグネチャにミスマッチがあっても致命的なエラーにはなりません
</para>
<example>
<title>互換性がある子クラスのメソッド</title>
Expand Down
2 changes: 1 addition & 1 deletion language/oop5/decon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $obj = new OtherSubClass();
</example>
<para>
他のメソッドと異なり、<link linkend="object.construct">__construct()</link>
を子クラスでオーバライドしても
を子クラスでオーバーライドしても
<link linkend="language.oop.lsp">シグネチャの互換性に関するルール</link> は適用されません。
</para>
<para>
Expand Down
2 changes: 1 addition & 1 deletion language/oop5/interfaces.xml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class B implements A
}

// Class constant と表示します。
// PHP 8.1.0 より前のバージョンでは、定数をオーバライドできなかったため、これは動作しませんでした。
// PHP 8.1.0 より前のバージョンでは、定数をオーバーライドできなかったため、これは動作しませんでした。
echo B::B;
?>
]]>
Expand Down
Loading