Skip to content

Commit 00c71ba

Browse files
vzabaznovAndrii Lugovyi
authored andcommitted
MAGETWO-36828: Api service should not return custom attribute for catalog inventory
- fix cs
1 parent 764d1d0 commit 00c71ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Plugin/Api/FilterCustomAttribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public function __construct($blackList = ['quantity_and_stock_status'])
2828
* Delete custom attribute from api response
2929
*
3030
* @param Repository $repository
31-
* @param $attributes
31+
* @param array $attributes
3232
* @return \Magento\Eav\Model\AttributeRepository
3333
*
3434
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3535
*/
36-
public function afterGetCustomAttributesMetadata(Repository $repository, $attributes)
36+
public function afterGetCustomAttributesMetadata(Repository $repository, array $attributes)
3737
{
3838
foreach ($attributes as $key => $attribute) {
3939
if (in_array($attribute->getAttributeCode(), $this->blackList)) {

0 commit comments

Comments
 (0)