Open
Description
When passing an attribute that is a non-string value, writeAttribute
throws an exception:
TypeError: XMLWriter::writeAttribute() expects parameter 2 to be string, integer given
Would it not be ideal to simply cast the value as a string and avoid the exception? This makes the API way more developer friendly IMHO.