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

PreSerialization Event not handled if the value is not object #162

Closed
y1o1 opened this issue Oct 6, 2013 · 1 comment
Closed

PreSerialization Event not handled if the value is not object #162

y1o1 opened this issue Oct 6, 2013 · 1 comment

Comments

@y1o1
Copy link

y1o1 commented Oct 6, 2013

If the type of property is not object, "pre_serialization" event is not dispatched.
In other words, the method "SerializationContext::isVisiting" throw an exception before handle event listener, iff the value is not an object.

This is too limited i think.

In my case, I created Hash Type, which can be either "String hash" or "Hashable instance".
I want to serialize without replacement of the object.

@goetas
Copy link
Collaborator

goetas commented Apr 24, 2017

see #610

@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

2 participants