From 5e95fdaa537234a60616a4ca569198173fa7e56f Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+ndossche@users.noreply.github.com> Date: Wed, 29 Oct 2025 23:03:49 +0100 Subject: [PATCH 1/2] Fix misleading wording Since PHP8 this is no longer a warning but an actual exception. Throw was never really right in the first place however, as warnings are _emitted_, not _thrown_. --- reference/array/functions/array-walk.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/array/functions/array-walk.xml b/reference/array/functions/array-walk.xml index ad6137e36026..c1d95d87c723 100644 --- a/reference/array/functions/array-walk.xml +++ b/reference/array/functions/array-walk.xml @@ -56,7 +56,7 @@ Many internal functions (for example strtolower) - will throw a warning if more than the expected number of argument + will throw if more than the expected number of argument are passed in and are not usable directly as a callback. From 7f77f5897ee061acb77d8208fc8c4bd37a8f1167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 30 Oct 2025 11:00:25 +0100 Subject: [PATCH 2/2] Fix typo in reference/array/functions/array-walk.xml --- reference/array/functions/array-walk.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/array/functions/array-walk.xml b/reference/array/functions/array-walk.xml index c1d95d87c723..96f0351a6333 100644 --- a/reference/array/functions/array-walk.xml +++ b/reference/array/functions/array-walk.xml @@ -56,7 +56,7 @@ Many internal functions (for example strtolower) - will throw if more than the expected number of argument + will throw if more than the expected number of arguments are passed in and are not usable directly as a callback.