Skip to content

Commit 9cf0746

Browse files
committed
Remove duplicate type check during encoder detection
1 parent e695287 commit 9cf0746

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Encoder/SimpleType/EncoderDetector.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Soap\Encoding\Encoder\Feature;
99
use Soap\Encoding\Encoder\OptionalElementEncoder;
1010
use Soap\Encoding\Encoder\XmlEncoder;
11-
use Soap\Encoding\Exception\InvalidArgumentException;
1211
use Soap\Engine\Metadata\Model\XsdType;
1312
use function Psl\Iter\any;
1413

@@ -22,10 +21,6 @@ public function __invoke(Context $context): XmlEncoder
2221
$type = $context->type;
2322
$meta = $type->getMeta();
2423

25-
if (!$meta->isSimple()->unwrapOr(false)) {
26-
throw new InvalidArgumentException('Unable to detect a complex type in the simple type detector');
27-
}
28-
2924
$encoder = $this->detectSimpleTypeEncoder($type, $context);
3025
if (!$encoder instanceof Feature\ListAware && $this->detectIsListType($type)) {
3126
$encoder = new SimpleListEncoder($encoder);

0 commit comments

Comments
 (0)