serializer icon indicating copy to clipboard operation
serializer copied to clipboard

Argument 1 must be an instance of LibXMLError

Open gregsparrow opened this issue 5 years ago • 3 comments

https://github.com/schmittjoh/serializer/blob/4c1e4296734385af7718ca71ec0febb4815b4a87/src/XmlDeserializationVisitor.php#L98

libxml_get_last_error() can return FALSE too ....

gregsparrow avatar Oct 10 '19 11:10 gregsparrow

Do you have a case when that happens?

goetas avatar Oct 10 '19 11:10 goetas

Just try to deserialize NULL

gregsparrow avatar Oct 10 '19 16:10 gregsparrow

Is that even possible since the deserialization data must be a string?https://github.com/schmittjoh/serializer/blob/4c1e4296734385af7718ca71ec0febb4815b4a87/src/SerializerInterface.php#L30

goetas avatar Oct 10 '19 17:10 goetas