We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
it seems to me that the change introduced in 21aa211 prevents some certain classes implementing ArrayAccess from being iterated with foreach macro.
ArrayAccess
foreach
The condition in 21aa211#diff-6b401ee81e7ad91e8e4fb5f199bc6a3eR129 does not take into account classes that implement ArrayAccess but do not use numerical offsets.
Consequently, theinit() method then returns NULL and the iteration is not performed at all.
init()
NULL
The text was updated successfully, but these errors were encountered:
- bugfix remove special treatment of classes implementing ArrayAccess…
61b59a9
… in {foreach} #332
Please note that a class implements ArrayAccess does not necessary mean that it can be iterated by foreach.
Sorry, something went wrong.
No branches or pull requests
Hello,
it seems to me that the change introduced in 21aa211 prevents some certain classes implementing
ArrayAccess
from being iterated withforeach
macro.The condition in 21aa211#diff-6b401ee81e7ad91e8e4fb5f199bc6a3eR129 does not take into account classes that implement
ArrayAccess
but do not use numerical offsets.Consequently, the
init()
method then returnsNULL
and the iteration is not performed at all.The text was updated successfully, but these errors were encountered: