Skip to content

Commit

Permalink
Merge pull request #31 from veewee/fix-backed-enum
Browse files Browse the repository at this point in the history
Fix: Backed-enum simpletypes should not be wrapped by element encoders
  • Loading branch information
veewee authored Dec 20, 2024
2 parents 293d588 + e5db249 commit c3277f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/EncoderRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Soap\Encoding\ClassMap\ClassMapCollection;
use Soap\Encoding\Encoder\AnyElementEncoder;
use Soap\Encoding\Encoder\Context;
use Soap\Encoding\Encoder\ElementEncoder;
use Soap\Encoding\Encoder\EncoderDetector;
use Soap\Encoding\Encoder\ObjectEncoder;
use Soap\Encoding\Encoder\OptionalElementEncoder;
Expand Down Expand Up @@ -205,7 +204,7 @@ public function addBackedEnum(string $namespace, string $name, string $enumClass
{
$this->simpleTypeMap->add(
(new QNameFormatter())($namespace, $name),
new ElementEncoder(new SimpleType\BackedEnumTypeEncoder($enumClass))
new SimpleType\BackedEnumTypeEncoder($enumClass)
);

return $this;
Expand Down

0 comments on commit c3277f2

Please sign in to comment.