language/control-structures/return.xml
db7aa4f29bd5909f8ab9e3739f60afb77837e4df
...
...
@@ -51,6 +51,12 @@
51
51
</simpara>
52
52
</note>
53
53
</para>
54
+

55
+
<para>
56
+
As of PHP 7.1.0, return statements without an argument in functions which declare a return type trigger <constant>E_COMPILE_ERROR</constant>,
57
+
unless the return type is <type>void</type>, in which case return statements
58
+
with an argument trigger that error.
59
+
</para>
54
60
</sect1>
55
61

56
62
<!-- Keep this comment at the end of the file
57
63