Skip to content

Fix misleading wording - #4960

Merged
TimWolla merged 2 commits into
php:masterfrom
ndossche:array-walk-oops
Oct 30, 2025
Merged

Fix misleading wording#4960
TimWolla merged 2 commits into
php:masterfrom
ndossche:array-walk-oops

Conversation

@ndossche

Copy link
Copy Markdown
Member

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.

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_.

@TimWolla TimWolla left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except typo.

Comment thread reference/array/functions/array-walk.xml Outdated
@TimWolla
TimWolla merged commit 4ca7cde into php:master Oct 30, 2025
2 checks passed
Crell pushed a commit to Crell/doc-en that referenced this pull request Dec 15, 2025
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_.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants