From 2030feeb3f218382d14302aa2282d078b4a45a9d Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Fri, 25 Aug 2017 13:44:23 +0000 Subject: [PATCH] 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 --- reference/array/functions/array-walk.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reference/array/functions/array-walk.xml b/reference/array/functions/array-walk.xml index fe43d328f7..1246b8ed45 100644 --- a/reference/array/functions/array-walk.xml +++ b/reference/array/functions/array-walk.xml @@ -92,10 +92,11 @@ &reftitle.errors; - If function callback requires more parameters than - given to it, an error of level - E_WARNING will be generated each time array_walk - calls callback. + As of PHP 7.1.0, an ArgumentCountError will be thrown if the callback function + requires more than 2 parameters (the value and key of the array member). + Previously, if the callback function required more than 2 parameters, + an error of level E_WARNING would be generated each time + array_walk calls callback.