Skip to content

[Component][Finder] Documented potential pitfalls when using iterator_to_array() with Finder #2098

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

Merged
merged 1 commit into from
Jan 27, 2013
Merged

Conversation

jakzal
Copy link
Contributor

@jakzal jakzal commented Jan 3, 2013

Documented it to avoid future issues similar to symfony/symfony#6460

@@ -53,6 +53,16 @@ the Finder instance.
:phpfunction:`iterator_to_array` method, or get the number of items with
:phpfunction:`iterator_count`.

.. tip::
Copy link
Member

Choose a reason for hiding this comment

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

I think it is better to use a .. caution:: block here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed.

weaverryan added a commit that referenced this pull request Jan 27, 2013
weaverryan added a commit that referenced this pull request Jan 27, 2013
[Component][Finder] Documented potential pitfalls when using iterator_to_array() with Finder
@weaverryan weaverryan merged commit 071f6b6 into symfony:2.0 Jan 27, 2013
@weaverryan
Copy link
Member

Awesome note Jakub!

@jakzal jakzal deleted the finder-iterator branch January 27, 2013 18:45
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.

3 participants