Skip to content

Commit f0ab1b0

Browse files
Merge remote-tracking branch 'remotes/github/MAGETWO-64838_2' into EPAM-PR-46
2 parents e2faec7 + a82bac4 commit f0ab1b0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/code/Magento/Customer/Model/FileProcessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Model;
79

810
/**

lib/internal/Magento/Framework/Webapi/CustomAttribute/PreprocessorInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ interface PreprocessorInterface
1717
* @param mixed $attribute
1818
* @return bool
1919
*/
20-
public function shouldBeProcessed($key, $attribute);
20+
public function shouldBeProcessed(string $key, $attribute): bool;
2121

2222
/**
2323
* Process attribute object according to type rules
2424
*
2525
* @param string $key
2626
* @param mixed $attribute
2727
*/
28-
public function process($key, &$attribute);
28+
public function process(string $key, &$attribute);
2929

3030
/**
3131
* Get list of affected attributes for the current preprocessor
3232
*
3333
* @return array
3434
*/
35-
public function getAffectedAttributes();
35+
public function getAffectedAttributes(): array;
3636
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ protected function convertCustomAttributeValue($customAttributesValueArray, $dat
349349
*
350350
* @return array
351351
*/
352-
private function getAttributesPreprocessorsMap()
352+
private function getAttributesPreprocessorsMap(): array
353353
{
354354
if (!$this->attributesPreprocessorsMap) {
355355
foreach ($this->customAttributePreprocessors as $attributePreprocessor) {
@@ -368,7 +368,7 @@ private function getAttributesPreprocessorsMap()
368368
* @param string $key
369369
* @param mixed $customAttribute
370370
*/
371-
private function runCustomAttributePreprocessors($key, &$customAttribute)
371+
private function runCustomAttributePreprocessors(string $key, &$customAttribute)
372372
{
373373
$preprocessorsMap = $this->getAttributesPreprocessorsMap();
374374
if ($key && is_array($customAttribute) && array_key_exists($key, $preprocessorsMap)) {

0 commit comments

Comments
 (0)