Skip to content

Incorrect return value from Product Attribute Repository #4803

@samtay

Description

@samtay

To adhere to Magento\Catalog\Api\ProductAttributeRepositoryInterface (extends Magento\Framework\Api\MetadataServiceInterface), the

Magento\Catalog\Model\Product\Attribute\Repository::getCustomAttributesMetadata

implementation should return Magento\Framework\Api\MetadataObjectInterface[], however it instead returns Magento\Catalog\Api\Data\ProductAttributeInterface[].

The ProductAttributeInterface does declare the two methods declared in MetadataObjectInterface , however they are not related by PHP extend.

Metadata

Metadata

Labels

Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug reportgood first issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions