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

There is no way (that i know of) to conditionally handle the encoding of a certain type #446

Closed
haasalex opened this issue May 9, 2015 · 1 comment

Comments

@haasalex
Copy link

haasalex commented May 9, 2015

Under certain circumstances I want to handle the serialization of an object myself. The other times I want to have the serializer behave like normal.

Sadly, there is no way for a Handler to withdraw from processing and tell the GraphNavigator that it shall continue as if there was no handler involved.

See my ticket at http://stackoverflow.com/questions/30131615

The straight way would be to have the handler return void instead of null. Yet PHP does not distinguish between no return value and a Null return value so I don't know what's the best way to implement it.

@goetas
Copy link
Collaborator

goetas commented May 29, 2018

duplicate of #177

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

No branches or pull requests

2 participants