diff --git a/composer.json b/composer.json index c732f7a..f462f87 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "require": { "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "ext-dom": "*", - "goetas-webservices/xsd-reader": "^0.4.5", + "goetas-webservices/xsd-reader": "^0.4.6", "php-soap/engine": "^2.9", "php-soap/wsdl": "^1.4", "php-soap/xml": "^1.6.0", diff --git a/src/Metadata/Converter/Types/Configurator/XmlTypeInfoConfigurator.php b/src/Metadata/Converter/Types/Configurator/XmlTypeInfoConfigurator.php index aa46a04..0ae37b2 100644 --- a/src/Metadata/Converter/Types/Configurator/XmlTypeInfoConfigurator.php +++ b/src/Metadata/Converter/Types/Configurator/XmlTypeInfoConfigurator.php @@ -27,7 +27,7 @@ public function __invoke(EngineType $engineType, mixed $xsdType, TypesConverterC return $engineType ->withXmlTargetNodeName($itemName ?: $typeName) - ->withXmlTypeName($typeName) + ->withXmlTypeName($typeName ?: $itemName ?: '') ->withXmlNamespace($typeNamespace) ->withXmlNamespaceName( $context->knownNamespaces->lookupNameFromNamespace($typeNamespace)->unwrapOr(