Skip to content
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

Debug::export ArrayIterator dumps the internal storage variable #206

Merged

Conversation

Slamdunk
Copy link
Contributor

Following my previous PR #191 I found also ArrayIterator needs special behaviour.

@doctrinebot
Copy link

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DCOM-127

@@ -104,7 +104,7 @@ public static function export($var, $maxDepth)
$return->__PROXY_INITIALIZED__ = $var->__isInitialized();
}

if ($var instanceof \ArrayObject) {
if ($var instanceof \ArrayObject or $var instanceof \ArrayIterator) {
Copy link

Choose a reason for hiding this comment

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

or should be ||

guilhermeblanco added a commit that referenced this pull request Jan 25, 2013
Debug::export ArrayIterator dumps the internal storage variable
@guilhermeblanco guilhermeblanco merged commit db84fc1 into doctrine:master Jan 25, 2013
@Slamdunk Slamdunk deleted the hotfix/debug-export-arrayiterator branch July 21, 2016 05:40
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.

None yet

4 participants