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

Serialization of empty object #323

Closed
lwojciechowski opened this issue Aug 19, 2014 · 2 comments
Closed

Serialization of empty object #323

lwojciechowski opened this issue Aug 19, 2014 · 2 comments

Comments

@lwojciechowski
Copy link

Could anyone explain why is this behavior expected?

public function testSerializeArrayWithEmptyObject()
{
    $this->assertEquals('{"0":{}}', $this->serialize(array(new \stdClass())));
}

Taken from JsonSerializationTest.php line 202

Thank you!

@josephdpurcell
Copy link

I too would like to know why that is expected.

@goetas
Copy link
Collaborator

goetas commented Apr 24, 2017

fixed in #730

@goetas goetas closed this as completed Apr 24, 2017
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

No branches or pull requests

3 participants