[doc-en] master: array_walk: Fix misleading wording (#4960)

From: Date: Thu, 30 Oct 2025 10:01:28 +0000
Subject: [doc-en] master: array_walk: Fix misleading wording (#4960)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-22828@lists.php.net to get a copy of this message
Author: Niels Dossche (ndossche) Committer: GitHub (web-flow) Pusher: TimWolla Date: 2025-10-30T11:01:25+01:00 Commit: https://github.com/php/doc-en/commit/4ca7cdeaee66bff2fefb9df88213ea6fc2e6f3dc Raw diff: https://github.com/php/doc-en/commit/4ca7cdeaee66bff2fefb9df88213ea6fc2e6f3dc.diff array_walk: Fix misleading wording (#4960) 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_. Changed paths: M reference/array/functions/array-walk.xml Diff: diff --git a/reference/array/functions/array-walk.xml b/reference/array/functions/array-walk.xml index ad6137e36026..96f0351a6333 100644 --- a/reference/array/functions/array-walk.xml +++ b/reference/array/functions/array-walk.xml @@ -56,7 +56,7 @@ <note> <para> Many internal functions (for example <function>strtolower</function>) - will throw a warning 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 <parameter>callback</parameter>. </para>

« previous php.doc.cvs (#22828) next »