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:
Christoph Michael Becker 2017-08-25 13:44:23 +00:00
parent 38c4ad6a3d
commit 2030feeb3f

View file

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