Skip to content

Commit

Permalink
Mark extends as simple
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Aug 25, 2023
1 parent 22979a2 commit 8056e7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"php": "^8.1",
"ext-dom": "*",
"goetas-webservices/xsd-reader": "^0.4.1",
"php-soap/engine": "^2.1",
"php-soap/engine": "^2.3",
"php-soap/wsdl": "^1.4",
"veewee/xml": "^2.6",
"azjezz/psl": "^2.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Soap\WsdlReader\Metadata\Converter\Types\Configurator;

use GoetasWebservices\XML\XSDReader\Schema\Type\SimpleType;
use GoetasWebservices\XML\XSDReader\Schema\Type\Type as XsdType;
use Soap\Engine\Metadata\Model\TypeMeta;
use Soap\Engine\Metadata\Model\XsdType as EngineType;
Expand All @@ -28,6 +29,7 @@ public function __invoke(EngineType $engineType, mixed $xsdType, TypesConverterC
static fn (TypeMeta $meta): TypeMeta => $meta->withExtends([
'type' => $name,
'namespace' => $base?->getSchema()->getTargetNamespace() ?? '',
'isSimple' => $base instanceof SimpleType,
])
);

Expand Down

0 comments on commit 8056e7d

Please sign in to comment.