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
method canBeSerialized implemented #3
Conversation
implements properly!
related c217a59 |
i don't know that why DOMDocument can not be serialize... |
@tael Internal classes and classes extending internal classes can not be considered serializable if they do not implement the Serializable interface. |
@whatthejeff |
@whatthejeff |
can someone check this PR? with any comment to improve :-) |
} | ||
$o = new \ReflectionObject($variable); | ||
$properties = $o->getProperties(\ReflectionProperty::IS_STATIC | \ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED); | ||
foreach ($properties as $p) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this traverse dynamically added properties?
Sorry for dropping the ball on this. In case you're still interested in this, @tael, feel free to open a new pull request that uses https://github.com/sebastianbergmann/object-enumerator for looking at all objects of an object graph. See #12. |
implements properly!
i'm not sure about write the test-code with phpUnit,
please someone improves that.
and i have no idea for 100 over recursive calls :(