[DOC-CVS] [doc-en] master: `#[\Override]`: document restriction on `__construct()` (#4738)

[email protected] (DanielEScherzer via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
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 <[email protected]>

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">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.