Skip to content

Commit 328dfcc

Browse files
authored
Merge pull request #33 from veewee/improve-xml-typename-logic
Improve XML typename logic
2 parents 85cf2b2 + a710a77 commit 328dfcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
1717
"ext-dom": "*",
18-
"goetas-webservices/xsd-reader": "^0.4.5",
18+
"goetas-webservices/xsd-reader": "^0.4.6",
1919
"php-soap/engine": "^2.9",
2020
"php-soap/wsdl": "^1.4",
2121
"php-soap/xml": "^1.6.0",

src/Metadata/Converter/Types/Configurator/XmlTypeInfoConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __invoke(EngineType $engineType, mixed $xsdType, TypesConverterC
2727

2828
return $engineType
2929
->withXmlTargetNodeName($itemName ?: $typeName)
30-
->withXmlTypeName($typeName)
30+
->withXmlTypeName($typeName ?: $itemName ?: '')
3131
->withXmlNamespace($typeNamespace)
3232
->withXmlNamespaceName(
3333
$context->knownNamespaces->lookupNameFromNamespace($typeNamespace)->unwrapOr(

0 commit comments

Comments
 (0)