Further 7.1 migration guide fixes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340177 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Andrea Faulds 2016-09-25 18:36:43 +00:00
parent 7a817fd3b9
commit 6de59f6d36

View file

@ -60,11 +60,10 @@ Uncaught Error: Too few arguments to function test(), 0 passed in...
<title>Void functions</title>
<para>
A <type>void</type> return type has been introduced to amalgamate the other
return types introduced into PHP 7. Functions declared with void as their
return type can either omit their return statement altogether, or use an
empty return statement. <type>null</type> is not a valid return value for a
void function.
A <type>void</type> return type has been introduced. Functions declared with
void as their return type must either omit their return statement altogether,
or use an empty return statement. <type>null</type> is not a valid return
value for a void function.
</para>
<informalexample>
@ -111,8 +110,7 @@ int(1)
The shorthand array syntax (<literal>[]</literal>) may now be used to
destructure arrays for assignments (including within
<literal>foreach</literal>), as an alternative to the existing
<function>list</function><literal>()</literal> syntax, which is still
supported.
<function>list</function> syntax, which is still supported.
</para>
<informalexample>