Skip to content

[Sync-En] objects does not have to be Traversable to be ForEach'ed. (#4535) - #1231

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1217-foreach-objects-traversable
Open

[Sync-En] objects does not have to be Traversable to be ForEach'ed. (#4535)#1231
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1217-foreach-objects-traversable

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Fixes #1217

Sync with EN commit 0d9947f2b1f0997cd8ddf80227b632dd5d3f2f92.

  • Remove the incorrect claim that foreach only works on Traversable objects
  • Change "iterable" to "value" since the operand is not necessarily the iterable type
  • Add a sentence explaining that objects are traversed over their visible properties by default

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.

[Sync EN] objects does not have to be Traversable to be ForEach'ed. (#4535)

1 participant