Skip to content

Commit 4ca7cde

Browse files
authored
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_.
1 parent 4b72b23 commit 4ca7cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/array/functions/array-walk.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<note>
5757
<para>
5858
Many internal functions (for example <function>strtolower</function>)
59-
will throw a warning if more than the expected number of argument
59+
will throw if more than the expected number of arguments
6060
are passed in and are not usable directly as a
6161
<parameter>callback</parameter>.
6262
</para>

0 commit comments

Comments
 (0)