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

Array typed as hashes (array<X,X>), are now correctly serialized when empty #197

Merged
merged 1 commit into from
Oct 11, 2012

Conversation

adrienbrault
Copy link
Contributor

No description provided.

@@ -84,7 +84,7 @@ public function visitArray($data, array $type)
$this->root = array();
$rs = &$this->root;
} else {
$rs = array();
$rs = isset($type['params'][1]) ? new \ArrayObject() : array();
Copy link
Owner

Choose a reason for hiding this comment

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

I assume this works because it is specially treated by json_encode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

schmittjoh added a commit that referenced this pull request Oct 11, 2012
Array typed as hashes (array<X,X>), are now correctly serialized when empty
@schmittjoh schmittjoh merged commit 959564f into schmittjoh:master Oct 11, 2012
@schmittjoh
Copy link
Owner

Thanks, merged.

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.

2 participants