Skip to content

Commit eaa5536

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

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
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);

src/Exception/InvalidArgumentException.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)