mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Update Errors/Exceptions sections to PHP 7.1 behaviour.
-- Provided by anonymous 84645 (petcu.stephan@gmail.com) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342934 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
38c4ad6a3d
commit
2030feeb3f
1 changed files with 5 additions and 4 deletions
|
@ -92,10 +92,11 @@
|
|||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
If function <parameter>callback</parameter> requires more parameters than
|
||||
given to it, an error of level <link linkend="errorfunc.constants">
|
||||
E_WARNING</link> will be generated each time <function>array_walk</function>
|
||||
calls <parameter>callback</parameter>.
|
||||
As of PHP 7.1.0, an <classname>ArgumentCountError</classname> will be thrown if the <parameter>callback</parameter> function
|
||||
requires more than 2 parameters (the value and key of the array member).
|
||||
Previously, if the <parameter>callback</parameter> function required more than 2 parameters,
|
||||
an error of level <link linkend="errorfunc.constants">E_WARNING</link> would be generated each time
|
||||
<function>array_walk</function> calls <parameter>callback</parameter>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
|
|
Loading…
Reference in a new issue