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

Argument 1 must be an instance of LibXMLError #1132

Open
gregsparrow opened this issue Oct 10, 2019 · 3 comments
Open

Argument 1 must be an instance of LibXMLError #1132

gregsparrow opened this issue Oct 10, 2019 · 3 comments

Comments

@gregsparrow
Copy link

throw new XmlErrorException(libxml_get_last_error());

libxml_get_last_error() can return FALSE too ....

@goetas
Copy link
Collaborator

goetas commented Oct 10, 2019

Do you have a case when that happens?

@gregsparrow
Copy link
Author

Just try to deserialize NULL

@goetas
Copy link
Collaborator

goetas commented Oct 10, 2019

Is that even possible since the deserialization data must be a string?

public function deserialize(string $data, string $type, string $format, ?DeserializationContext $context = null);

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