Skip to content

Commit 0efa7b8

Browse files
committed
Merge remote-tracking branch 'github-magento2ce/MAGETWO-64838_2' into EPAM-PR-46
2 parents 48e5417 + 54818de commit 0efa7b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ private function getNameFinder()
146146
* @param string $serviceMethodName name of the method that we are trying to call
147147
* @param array $inputArray data to send to method in key-value format
148148
* @return array list of parameters that can be used to call the service method
149-
* @throws InputException if no value is provided for required parameters
150149
* @throws WebapiException
151150
*/
152151
public function process($serviceClassName, $serviceMethodName, array $inputArray)
@@ -230,6 +229,7 @@ private function getConstructorData(string $className, array $data): array
230229
* @param array $data
231230
* @return object the newly created and populated object
232231
* @throws \Exception
232+
* @throws SerializationException
233233
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
234234
*/
235235
protected function _createFromArray($className, $data)
@@ -365,10 +365,10 @@ private function getAttributesPreprocessorsMap(): array
365365
/**
366366
* Prepare attribute value by loaded attribute preprocessors
367367
*
368-
* @param string $key
368+
* @param mixed $key
369369
* @param mixed $customAttribute
370370
*/
371-
private function runCustomAttributePreprocessors(string $key, &$customAttribute)
371+
private function runCustomAttributePreprocessors($key, &$customAttribute)
372372
{
373373
$preprocessorsMap = $this->getAttributesPreprocessorsMap();
374374
if ($key && is_array($customAttribute) && array_key_exists($key, $preprocessorsMap)) {
@@ -386,6 +386,7 @@ private function runCustomAttributePreprocessors(string $key, &$customAttribute)
386386
*
387387
* @param string[] $customAttribute
388388
* @return string[]
389+
* @throws SerializationException
389390
*/
390391
private function processCustomAttribute($customAttribute)
391392
{

0 commit comments

Comments
 (0)