Fix #76311: __construct/__destruct must not have return types

This commit is contained in:
Christoph M. Becker 2021-08-27 13:03:42 +02:00
parent 9a72097c8b
commit 3926279f82
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -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>