We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 764d1d0 commit 00c71baCopy full SHA for 00c71ba
app/code/Magento/Catalog/Model/Plugin/Api/FilterCustomAttribute.php
@@ -28,12 +28,12 @@ public function __construct($blackList = ['quantity_and_stock_status'])
28
* Delete custom attribute from api response
29
*
30
* @param Repository $repository
31
- * @param $attributes
+ * @param array $attributes
32
* @return \Magento\Eav\Model\AttributeRepository
33
34
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
35
*/
36
- public function afterGetCustomAttributesMetadata(Repository $repository, $attributes)
+ public function afterGetCustomAttributesMetadata(Repository $repository, array $attributes)
37
{
38
foreach ($attributes as $key => $attribute) {
39
if (in_array($attribute->getAttributeCode(), $this->blackList)) {
0 commit comments