Skip to content

Conversation

@divinity76
Copy link
Contributor

fix #4534

<para>
The <literal>foreach</literal> construct provides an easy way to
iterate over <type>array</type>s and <interfacename>Traversable</interfacename> objects.
iterate over <type>array</type>s and objects.
Copy link
Member

Choose a reason for hiding this comment

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

Should specify that it's only object properties that can be iterated over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ForEach does not issue an error for non-iterable non-Traversable objects

3 participants