[doc-en] master: `#[\Override]`: document restriction on `__construct()` (#4738)
| From: | DanielEScherzer via GitHub | Date: | Sun, 22 Jun 2025 18:30:33 +0000 |
| Subject: | [doc-en] master: `#[\Override]`: document restriction on `__construct()` (#4738) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22701@lists.php.net to get a copy of this message | ||
Author: DanielEScherzer (DanielEScherzer)
Committer: GitHub (web-flow)
Pusher: DanielEScherzer
Date: 2025-06-22T11:18:06-07:00
Commit: https://github.com/php/doc-en/commit/7c125c7d4513a66bca7754b418ab56134a581eb1
Raw diff: https://github.com/php/doc-en/commit/7c125c7d4513a66bca7754b418ab56134a581eb1.diff
#[\Override]: document restriction on __construct() (#4738)
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
Changed paths:
M language/predefined/attributes/override.xml
Diff:
diff --git a/language/predefined/attributes/override.xml
b/language/predefined/attributes/override.xml
index 813ceecbad50..30c0a5f4400b 100644
--- a/language/predefined/attributes/override.xml
+++ b/language/predefined/attributes/override.xml
@@ -17,6 +17,11 @@
in an implemented interface a compile-time error will be
emitted.
</simpara>
+ <simpara>
+ The attribute cannot be used on the
+ <link linkend="object.construct">__construct()</link>
+ method, which is exempt from signature checks.
+ </simpara>
</section>
<section xml:id="override.synopsis">