src/XSD2PHP/src/com/mikebevz/xsd2php/Php2Xml.php
private function castToStringZero($prop, $obj)
    {
        if ($this->isEmptyInt($prop->getValue($obj))) {
            //reset value in very specific case to keep it intact
            $prop->setValue($obj, (string) $prop->getValue($obj));
        }
    }
private function castToStringZero($prop, $obj)
    {
        if ($this->isEmptyInt($prop->getValue($obj))) {
            //reset value in very specific case to keep it intact
            $prop->setValue($obj, (string) $prop->getValue($obj));
        }
    }
Cast numeric empty value to string
@see SDK-78
@param ReflectionProperty $prop
@param Object $obj