Skip to content

Commit 222fd65

Browse files
author
Aliaksei Yakimovich2
committed
MAGETWO-64838: Unable to create order from store front if customer address custom attribute is required
- code refactoring;
1 parent 7df1f16 commit 222fd65

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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/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)