Skip to content

Commit 7c125c7

Browse files
#[\Override]: document restriction on __construct() (#4738)
Co-authored-by: Tim Düsterhus <[email protected]>
1 parent 691541e commit 7c125c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

language/predefined/attributes/override.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
in an implemented interface a compile-time error will be
1818
emitted.
1919
</simpara>
20+
<simpara>
21+
The attribute cannot be used on the
22+
<link linkend="object.construct">__construct()</link>
23+
method, which is exempt from signature checks.
24+
</simpara>
2025
</section>
2126

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

0 commit comments

Comments
 (0)