-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
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
Use is_iterable instead of is_array #991
Conversation
If you think that this change deserve it's existence I can add tests |
Yes please, once the tests are in place I will gladly merge the PR |
@ste93cry I just committed the test 👍 |
fa23cf4
to
12b67c8
Compare
Instead of merging, can you please rebase on top of |
Sure, I just did it, I didn't know you were using develop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, changes look good, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're missing a changelog entry! Apart from that, LGTM! 👍
8abdff8
to
43f1c48
Compare
Ouch!, added. |
I'm sorry but this seems to break Behat, please see #1028 |
What about using
is_iterable
to allow Traversable objects to be processed automatically?If the check is only to be able to do a foreach, I think it's safe.