Skip to content

Commit 3141689

Browse files
committed
MAGETWO-93258: [Forwardport] Optimize retrieving product attributes
1 parent d018643 commit 3141689

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Catalog/Model/FilterProductCustomAttribute.php

Lines changed: 4 additions & 2 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\Catalog\Model;
79

810
/**
@@ -26,9 +28,9 @@ public function __construct(array $blackList = [])
2628
/**
2729
* Delete custom attribute
2830
* @param array $attributes
29-
* @return mixed
31+
* @return array
3032
*/
31-
public function execute(array $attributes)
33+
public function execute(array $attributes): array
3234
{
3335
return array_diff($attributes, $this->blackList);
3436
}

0 commit comments

Comments
 (0)