File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/internal/Magento/Framework/Webapi Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77
88namespace Magento \Framework \Webapi ;
99
10+ use Laminas \Code \Reflection \ClassReflection ;
1011use Magento \Framework \Api \AttributeValue ;
1112use Magento \Framework \Api \AttributeValueFactory ;
1213use Magento \Framework \Api \SearchCriteriaInterface ;
2223use Magento \Framework \Phrase ;
2324use Magento \Framework \Reflection \MethodsMap ;
2425use Magento \Framework \Reflection \TypeProcessor ;
25- use Magento \Framework \Webapi \Exception as WebapiException ;
2626use Magento \Framework \Webapi \CustomAttribute \PreprocessorInterface ;
27- use Laminas \ Code \ Reflection \ ClassReflection ;
27+ use Magento \ Framework \ Webapi \ Exception as WebapiException ;
2828use Magento \Framework \Webapi \Validator \IOLimit \DefaultPageSizeSetter ;
2929use Magento \Framework \Webapi \Validator \ServiceInputValidatorInterface ;
3030
@@ -539,6 +539,8 @@ private function processComplexTypes($data, $type)
539539
540540 if (!$ isArrayType ) {
541541 return $ this ->_createFromArray ($ type , $ data );
542+ } elseif (!is_array ($ data )) {
543+ throw new InvalidArgumentException (__ ('Not all parameters valid. ' ));
542544 }
543545
544546 $ result = is_array ($ data ) ? [] : null ;
You can’t perform that action at this time.
0 commit comments