mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Fix #76311: __construct/__destruct must not have return types
This commit is contained in:
parent
9a72097c8b
commit
3926279f82
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@
|
|||
must be identical to the signature described in this document.
|
||||
Otherwise, a fatal error is emitted.
|
||||
Prior to PHP 8.0.0, no diagnostic was emitted.
|
||||
However, <link linkend="object.construct">__construct()</link> and
|
||||
<link linkend="object.destruct">__destruct()</link> must not declare a return type;
|
||||
otherwise a fatal error is emitted.
|
||||
</para>
|
||||
</warning>
|
||||
|
||||
|
|
Loading…
Reference in a new issue