File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 88use Soap \Encoding \Encoder \Feature ;
99use Soap \Encoding \Encoder \OptionalElementEncoder ;
1010use Soap \Encoding \Encoder \XmlEncoder ;
11- use Soap \Encoding \Exception \InvalidArgumentException ;
1211use Soap \Engine \Metadata \Model \XsdType ;
1312use 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 );
You can’t perform that action at this time.
0 commit comments