Skip to content

Commit

Permalink
Merge pull request #33 from veewee/improve-xml-typename-logic
Browse files Browse the repository at this point in the history
Improve XML typename logic
  • Loading branch information
veewee authored Jun 11, 2024
2 parents 85cf2b2 + a710a77 commit 328dfcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 328dfcc

Please sign in to comment.