Skip to content

Commit a82bac4

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 222fd65 commit a82bac4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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
}

0 commit comments

Comments
 (0)