Skip to content

Commit de74802

Browse files
committed
sync with en / Write introduction for #[\Override] attribute
https://github.com/php/doc-en/commits/master/language/predefined/attributes/override.xml
1 parent 0d1d4f9 commit de74802

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

language/predefined/attributes/override.xml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 05b314c2ae84456def6a56777b05d0645fb3e11e Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 7c125c7d4513a66bca7754b418ab56134a581eb1 Maintainer: mumumu Status: ready -->
44
<reference xml:id="class.override" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
55
<title>Override アトリビュート</title>
66
<titleabbrev>Override</titleabbrev>
@@ -9,8 +9,21 @@
99

1010
<section xml:id="override.intro">
1111
&reftitle.intro;
12-
<para>
13-
</para>
12+
<simpara>
13+
このアトリビュートは、
14+
親クラスのメソッドをオーバーライドしている意図があるか、
15+
インターフェイスで定義されたメソッドを実装していることを示します。
16+
</simpara>
17+
<simpara>
18+
親クラス中に同じ名前のメソッドが存在しなかったり、
19+
実装されているインターフェイスがない場合は、
20+
コンパイル時にエラーが発生します。
21+
</simpara>
22+
<simpara>
23+
シグネチャのチェックを回避できてしまうため、
24+
このアトリビュートは <link linkend="object.construct">__construct()</link>
25+
に対しては使えません。
26+
</simpara>
1427
</section>
1528

1629
<section xml:id="override.synopsis">

0 commit comments

Comments
 (0)