mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
7a817fd3b9
commit
6de59f6d36
1 changed files with 5 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue