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

DateTimeImmutable not json_encoded by HHVM #5137

nyamsprod opened this Issue Apr 7, 2015 · 1 comment


None yet
3 participants

nyamsprod commented Apr 7, 2015
DateTime is json_encoded but not DateTimeImmutable

echo json_encode(new DateTime('2015-05-03'));
//does not work returns empty brackets
echo json_encode(new DateTimeImmutable('2015-05-03')); //{}

This comment has been minimized.

Show comment
Hide comment

fredemmott May 4, 2015


reverting, should extend ObjectData::toArray instead


fredemmott commented May 4, 2015

reverting, should extend ObjectData::toArray instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment